Download the PHP package moktech/mocklogger-sdk without Composer

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

MockLogger SDK Documentation

MockLogger SDK offers functionality for logging request and response data of a Laravel application. This SDK provides methods to capture and log data pertaining to incoming HTTP requests and their associated responses.

With the MockLogger SDK, you can easily capture and log data from HTTP requests and responses, helping you monitor and analyze your application's interactions with external services and users actions.

Installation

To get started with the MockLogger SDK, follow these installation steps:

Install the SDK:

Install the MockLogger SDK using Composer:

Publish Configuration:

Publish the MockLogger SDK configuration file using Artisan:

Register Service Provider:

Open the config/app.php file and add the service provider to the providers array:

Set Environment Variables:

Set the following environment variables in your application's .env. You can obtain these values from your Mocklogger application:

Usage

Once you have installed the MockLogger SDK and configured your environment, you can now use it to log request and response data. Here are two ways to use the SDK:

Method 1: Using sendLog

Use this in your Terminable Middleware (Sunctum protected URL).

Method 2: Using sendData

You can also manually assemble the request and response data and use the sendData method to log it.

Server Health Monitoring

MockLogger SDK empowers you to maintain optimal server performance by allowing you to set usage limits on CPU, memory, and hard disk space. If any of these limits are exceeded, the SDK automatically sends a detailed log to administrator's email configured in config/mocklogger.php.

To start monitoring your server, run this command:

For continuous monitoring, you can schedule this command with a cron job. Keep your server in check effortlessly with this tool.


All versions of mocklogger-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^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 moktech/mocklogger-sdk contains the following files

Loading the files please wait ....