Download the PHP package hesamrad/laravel-flashlight without Composer

On this page you can find all versions of the php package hesamrad/laravel-flashlight. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-flashlight

Flashlight Cover

Laravel Flashlight

Laravel-Flashlight is a minimal package to log incoming requests to your application; it is highly customizable and easy to install.

How to install?

Take these steps to install Flashlight.

Step #1

Install the package from Composer.

Step #2

Publish congifuration file.

Step #3

Publish migration file. (Only if you want to store logs inside your database.)

Step #4

Apply middleware on routes.

And you're done!

Now every request that goes through Flashlight will be logged to be monitored later.

Note that all Flashlight logs are stored in flashlight.log file under storage/logs.


How to customize Flashlight?

Kill Switch

If you wish to turn Flashlight on/off for a short time, you can do so by editing enabled key inside flashlight.php config file under App/config.

Note that by default Flashlight is enabled.


Driver Option

There are a number of drivers you can choose to log the incoming requests to your application. You could choose file or database which will respectively store log records in a local file or a database table. You can change the driver by editing driver key inside flashlight.php config file under App/config. (This value corresponds to an existing key inside drivers array.)

Note that Flashlight uses file driver as its default driver.


HTTP Method Customization

If you wish to customize HTTP methods to log, you can do so by editing excluded_methods array inside flashlight.php config file under App/config.

For example:

By doing this, all PUT requests are ignored by Flashlight.

Note that by default all HTTP method are logged by Flashlight.


Log Request Headers

If you wish to log request headers, you can do so by editing log_headers key inside flashlight.php config file under App/config.

Note that by default request headers are logged by Flashlight.


Log Request Body

If you wish to log request body, you can do so by editing log_body key inside flashlight.php config file under App/config.

Note that by default request body is logged by Flashlight.


Request Parameters Customization

If you wish to customize request parameters to log, you can do so by editing excluded_parameters array inside flashlight.php config file under App/config.

For example:

By doing this, all specified parameters are ignored by Flashlight.

Note that by default password and password_confirmation parameters are ignored by Flashlight.


URI Customization

If you wish to customize URIs to log, you can do so by editing excluded_uris array inside flashlight.php config file under App/config.

For example:

By doing this, all requests under /admins are ignored by Flashlight.

Note that by default all requests are logged by Flashlight.


Log table getting too big?

No problem! Flashlight comes with a prune command to remove old logs to maintain a lighter table inside your storage.

All you have to do, is to run php artisan flashlight:prune command to make this happen.

Note that by default value is 30 days; and Flashlight will remove anything older than that; so if you want to change this value to your liking, you can do so by editing prune_period array inside flashlight.php config file under App/config.



All versions of laravel-flashlight with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0|^8.1|^8.2
illuminate/config Version ^7.0|^8.0|^9.0|^10.0
illuminate/database Version ^7.0|^8.0|^9.0|^10.0
illuminate/support Version ^7.0|^8.0|^9.0|^10.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hesamrad/laravel-flashlight contains the following files

Loading the files please wait ....