Download the PHP package loglia/laravel-client without Composer

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

Laravel Client

Build Status Latest Stable Version

About Loglia

Loglia is a cloud-based Laravel logging and monitoring solution. Loglia will take your Laravel application's logs and make them searchable, filterable and linkable to the rest of your team. If you've ever wondered what your app would say if it could speak, Loglia will tell you.

System Requirements

The Loglia client requires the following be installed and available on your system:

Quick start

Firstly, require the package with Composer:

The package uses package discovery so you shouldn't need to add the service provider to app.php. If you've disabled package discovery in your app, or are using a Laravel version before 5.5, add Loglia\LaravelClient\LaravelClientServiceProvider::class to the providers array in app.php manually.

Secondly, publish the Loglia configuration file.

You need an API key in order to send your application's logs to Loglia. When creating an application in the Loglia UI, you will be given an API key. Copy it into your .env file:

Thirdly, configure your application to send its logs to Loglia.

Note: If you're using a Laravel version before 5.6, you don't need to do this. The package automatically configures your logs to send to Loglia.

Crack open the logging.php config file and add this under the channels array:

Then change the LOG_CHANNEL environment variable in .env to use that channel.

You logs will now be sent to the application you have set up in the Loglia dashboard!

HTTP Logging

This package ships with a LogHttp middleware which can be used to log all of the HTTP requests sent to your application. This functionality ships as middleware so that you have complete control over which of your routes log requests.

If you would like to log all HTTP requests across your whole application, you can add the LogHttp middleware to your global middleware stack in app/Http/Kernel.php:

Alternatively, you are free to assign the middleware a name in the $routeMiddleware array and assign it only to specific routes:

And then use it as normal in your route definitions:

Configuration

The package ships with a loglia.php configuration file that can be used to tweak the Loglia-specific configuration. The comments in this file should be self-explanatory, but below is a reference.

api_key

This is the API key that will authenticate your application with Loglia. Without it, Loglia won't know which application to relate your logs with. You should generate an API key in your application settings and set its value here.

http.header_blacklist

When logging HTTP requests, Loglia will also capture the HTTP headers in the request and response. Some of these headers contain sensitive information such as credentials and cookies. This array contains a list of HTTP headers that should be scrubbed from the request and response before sending to Loglia. It is pre-filled with sensible defaults but you are free to add or remove any header you want.


All versions of laravel-client with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2
ext-json Version *
ext-curl Version *
illuminate/support Version ^6.0|^7.0|^8.0
monolog/monolog Version ^2.0
ramsey/uuid Version ^3.0|^4.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 loglia/laravel-client contains the following files

Loading the files please wait ....