Umami Stats API for Laravel
12 minutes reading  ~  14 visits
On: 2021/10/03 - 05:42 pm
Laravel package github umami

Photo by Markus Winkler on Unsplash

hello everyone, it's been a while since any new dev talks, so here is an exciting new project. today I wrote a small package, an API wrapper for Umami website analytics. to get your stats in the Laravel app.

before I start, I strongly agree with taking control of your own data; is part of keeping the web open and free. Without holding and controlling your own data, you are allowing others to use it too - for their purposes. A strong concentration on few services allows creating personal profiles about large numbers of internet users. These profiles can be used to target ads and strengthen the online bubbles people live in. This is highly undesirable as it is detrimental to our society and freedom.

to clarify, I don't hate Google, I still use Gmail and Youtube and many other services from them, but when I can avoid using their services, I run away from them.

Degoogl Your Life!

What is Umami stats?

Umami is a simple, easy to use, self-hosted web analytics solution. The goal is to provide you with a friendlier, privacy-focused alternative to Google Analytics and a free, open-sourced alternative to paid solutions. Umami collects only the metrics you care about and everything fits on a single page. You can view a live demo here.

Umami website: https://umami.is

And Waht is Laravel?

Laravel is a web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.

Laravel website: https://laravel.com

Then, what I did?

simply I provide a wrapper for Umami to make it easy to request from umami API inside any Laravel application, this way you can show your Stats for any website in your Umami server, and display them in your app, like inside Laravel Nove or laravel backpack, or any backend your using!

laravel umami on github
laravel-umami repo on Github

But Way?!

I was building my dashboard for atm-code site, and I needed a simple way to show all my stats and pageviews, as a result, I made this little dashboard for me, that will be easy to show all my stats from my Umami server via the API, in my Laravel app.

example of using laravel umami in my dashboard

I hope this will be useful for someone, check out the repo.

A Storage Story

A Storage Story

A storage story, behind the scenes of the photo session.

On: 2020/05/28 - 06:12 pm
a new repo, Valet Home

a new repo, Valet Home Photo by Egor Myznik on Unsplash

a small site build with laravel to be your home page for your laravel valet sites On: 2021/04/29 - 07:17 pm

Saddest and Happiest

Photo by Soragrit Wongsa on Unsplash

Saddest and Happiest

On: 2021/02/09 - 08:10 pm