Download the PHP package rstriquer/eloquent-logger without Composer

On this page you can find all versions of the php package rstriquer/eloquent-logger. 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 eloquent-logger

Eloquent Logger

A package to allow logging of all SQL queries executed by an application built in Laravel by the eloquent ORM component.

This package builds a Laravel provider inside "vendors" folder which attaches a listener to the Eloquent Console Manager that writes ane query to a log output.

As the package is in vendors and installed in the dev, the developer does not need to worry about adding or removing codes from providers, as recommended in some pages on the internet, thus facilitating his day-to-day bases;

IMPORTANT:

Minimum Requirements

This plugin was built when using Laravel version 8.0 and should work properly with any Laravel version after 8.

If you have the opportunity to successfully use this plugin in a previous laravel release please consider opening an issue to report your experience.

If you have any problems with this plugin please report it by following the steps on "Contributing" below.

How to install

Just run the following:

If you want you can personalize the log filename by setting the environment variable DB_LOGGER_FILE. It works with .end file and the file must be placed at storage directory.

how to use the plugin

Just set the environment variable DB_LOGGER_ACTIVE to true in your .env file and run the application. The file set on DB_LOGGER_FILE variable (which defaults to '/logs/query.log' located at the storage directory at your application root folder) should contain all the queries performed by that run sequentially.

To restrict the log file to the lasting 10 lines you can run the following sequence of commands:

Contributing

The code is located in the Git repository at github. Contributions are most welcome by forking the repository and sending a pull request.

Discussions are done on GitHub issue tracker

Always remember to check on lint and types before post code:

PS: If necessary to fix lint you can just run composer run lint a couple of times till it passes green and it will fix itself automatically.

To test a specific change you may configure your composer.json file in your project like described here

How to unit-test

This package make use of in memory sqlite to test its feature therefore be sure to have ext-sqlite installed on your system before running tests.

Code of Conduct

We follow and support the Laravel Code of Conduct and in order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Authors and License

This is an open source project by @rstriquer and licensed under MIT license.

rstriquer reserves the right to change the license in future releases without prior notification, but understand and agree that versions until such time remain under the MIT license as here described.


All versions of eloquent-logger with dependencies

PHP Build Version
Package Version
Requires php Version >7.0
laravel/framework Version >8.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 rstriquer/eloquent-logger contains the following files

Loading the files please wait ....