Download the PHP package atatus/laravel-atatus without Composer

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

Atatus Laravel Middleware

Atatus Laravel Middleware allows for the automatic capture of API calls and sends them to Atatus API analytics.

How to install

Via Composer

or add 'atatus/laravel-atatus' to your composer.json file accordingly.

How to use

Add Service Provider

Add to Middleware

If website root is your API, add to the root level:

If you only want to add tracking for APIs under specific route group, add to your route group, but be sure to remove from the global middleware stack from above global list.

To track only certain routes, use route specific middleware setup.

Publish the package config file

Setup config

Edit config/atatus.php file.

For other configuration options, see below.

Configuration options

You can define Atatus configuration options in the config/atatus.php file.

logBody

Type: Boolean Optional, Default true, Set to false to remove logging request and response body to Atatus.

debug

Type: Boolean Optional, Default false, Set to true to print debug messages using Illuminate\Support\Facades\Log

configClass

Type: String Optional, a string for the full path (including namespaces) to a class containing additional functions. The class can reside in any namespace, as long as the full namespace is provided.

example:

Configuration class (Optional)

Because configuration hooks and functions cannot be placed in the config/atatus.php file, these reside in a PHP class that you create. Set the path to this class using the configClass option. You can define any of the following hooks:

identifyUserId

Type: ($request, $response) => String Optional, a function that takes a $request and $response and return a string for userId. Atatus automatically obtains end userId via $request->user()['id'], In case you use a non standard way of injecting user into $request or want to override userId, you can do so with identifyUserId.

identifyCompanyId

Type: ($request, $response) => String Optional, a function that takes a $request and $response and return a string for companyId.

maskRequestBody

Type: $body => $body Optional, a function that takes a $body, which is an associative array representation of JSON, and returns an associative array with any information removed.

maskResponseBody

Type: $body => $body Optional, same as above, but for Responses.

Example config class

Be sure to update cache after changing config:

If you enabled config cache, after you update the configuration, please be sure to run php artisan config:cache again to ensure configuration is updated.

Credits

The PHP JSON extension is required.

Make sure you install PHP with the JSON Extension enabled More Info.


All versions of laravel-atatus with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
ext-curl Version *
ext-json Version *
ext-mbstring Version *
mashape/unirest-php Version ~3.0.1
apimatic/jsonmapper Version ~1.0.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 atatus/laravel-atatus contains the following files

Loading the files please wait ....