Download the PHP
package fei/audit-client without Composer
On this page you can find all versions of the php package
fei/audit-client. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor fei Package audit-client Short Description Audit client License
GPL-3.0
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.
Just add the following requirement to your composer.json file:
Configuration
The audit event client needs some options to work properly. The available options that can be passed to the __construct() or setOptions() methods are :
Option
Description
Type
Possible Values
Default
OPTION_BASEURL
This is the server to which send the requests.
string
Any URL, including protocol but excluding path
--
OPTION_FILTER
Minimum notification level required for notifications to be actually sent.
int
Any AuditEvent::LVL_* constant
AuditEvent::LVL_ERROR
OPTION_BACKTRACE
Should backtrace be added to notifications before they are sent.
bool
true / false
true
Notes:
Audit is an alias of Fei\Service\AuditEvent\Client\AuditAuditEvent is an alias of Fei\Service\Audit\Entity\AuditEvent
Usage
Initialization
An Audit client should always be initialized by a dependency injection component, since it requires at least one dependency, which is the transport. Moreover, the BASEURL parameter should also depends on environment.
Pushing a simple notification
Once you have set up the Audit, you can start pushing notifications by calling the notify() method on the Audit:
While its possible to pass more than just the level using the second (array) parameter, it is recommended not to do so. If you want to pass more informations, like a context, please take a look at the following section.
Pushing a AuditEvent instance
The more reliable way to push a notification is to instantiate it by yourself, and then send it through notify(), that will also accept AuditEvent instances:
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 fei/audit-client contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.