Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

stefanzweifel/laravel-download-statistics-app

Repository files navigation

Laravel Download Statistics

Aggregated download statistics for Laravel

Note: Packagist.org has recently been updated to show the install numbers per major version (See composer/packagist#1006). This change makes this page redundant. You can checkout Laravel's download statistics now on packagist.org.

How are numbers calculated

All download numbers are based on the download statistics for Laravel on packagist.org. A Job parses the download statistics and stores them in a local database.

The data is then either grouped by Minor Version or Month.

You can find the Controllers here. The corresponding MySQL queries to group the data is available here.

Local development

TBD

Updating download numbers

Download statistic numbers can easily be updated by running:

php artisan app:fetch-downloads

Important: The command dispatches Jobs to download the actual numbers. For best performance, setup a local queue environment with Redis, change QUEUE_CONNECTION to redis and run php artisan horizon. Laravel Horizon will take care of the queues.

To get download statistics for a specific month run

php artisan app:fetch-downloads 2019-01

Deployment

As the content of the pages only update once every month, the app is hosted on Netlify. To create a new HTML build run the following:

php artisan export

Commit the changes in the dist-folder.

License

MIT

About

Aggregated download statistics for Laravel.

Topics

Resources

License

Stars

Watchers

Forks