Beware! If you feel that your application starts to run slower, it can become a smelling zombie!
Laravel Sense provides a dashboard for application profiling. Sense allows you to easily monitor key metrics such as HTTP requests & Eloquent queries. Understand what is happening in black box system in a minutes!
DON'T USE IT ON PRODUCTION! PROFILING MAY SLOW DOWN YOUR APPLICATION ENORMOUSLY!
- Features
- Requirements
- Installation
- Usage
- Changelog
- Contributing
- Testing
- Security
- Contributors
- Alternatives
- License
- About CyberCog
- Can profile APIs
- Designed to work with Laravel Eloquent models
- Dashboard with profiling summaries
- Easy to use dashboard authentication
- Following PHP Standard Recommendations:
Laravel Sense has a few requirements you should be aware of before installing:
- PHP 7.1.3+
- Composer
- Laravel Framework 5.5+
You can install the package via Composer.
$ composer require cybercog/laravel-sense --dev
The package will register itself automatically.
At last you need to publish and run database migrations.
$ php artisan migrate
If you want to make changes in migrations, publish them to your application first.
$ php artisan vendor:publish --tag=sense-migrations
Sense exposes a dashboard at /sense
. By default, you will only be able to access this dashboard in the local
environment.
To define a more specific access policy for the dashboard, you should use the \Cog\Laravel\Sense\Authentication\Services\Authenticator::using
method.
The using
method accepts a callback which should return true
or false
, indicating whether the user should have access to the Sense dashboard.
Typically, you should call Authenticator::using
in the boot method of your AuthServiceProvider
:
\Cog\Laravel\Sense\Authentication\Services\Authenticator::using(function ($request) {
// return true / false;
});
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Run the tests with:
$ vendor/bin/phpunit
If you discover any security related issues, please email open@cybercog.su instead of using the issue tracker.
Anton Komarev |
---|
Laravel Sense contributors list
Feel free to add more alternatives as Pull Request.
Laravel Sense
package is open-sourced software licensed under the MIT license by Anton Komarev.Smelling
image licensed under Creative Commons 3.0 by Gan Khoon Lay.
CyberCog is a Social Unity of enthusiasts. Research best solutions in product & software development is our passion.