Download the PHP package andro-adel/microservice-package without Composer

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

Build Status Total Downloads Latest Stable Version License

About Package

This is a laravel package to be used with each microservice to setup main packages and configurations.

Packages that will be installed

Installation

You can install the package via composer:

Vendor Publish

Publish all the files

Publish the config files individually

Publish the lang files individually

Publish the tests files individually

Configuration

This package has the configuration files in the config folder upon installation, extending the project configuration from ddconfig. and this files are:

Usage

ApiResponses

This functions will be used by the microservice to return the response in a standard way.

Success Response

This function will be used to return a success response with the data, reason, message, additionData, status.

example:

Success No Content Response

This function will be used to return a success response with no content.

example:

Not Modified Response

This function will be used to return a not modified response.

example:

Bad Request Response

This function will be used to return a bad request response.

example:

Unauthorized Response

This function will be used to return an unauthorized response.

example:

Unauthenticated Response

This function will be used to return an unauthenticated response.

example:

Not Found Response

This function will be used to return a not found response.

example:

Conflict Response

This function will be used to return a conflict response.

example:

Not Valid Response

This function will be used to return a not valid response.

example:

Server Error Response

This function will be used to return a server error response.

example:

Success Pagination Response

This function will be used to return a success pagination response.

example:

Success Show Pagination Response

This function will be used to return a success show pagination response.

example:

Success Show Paginated Data Response

This function will be used to return a success show paginated data response.

example:

Created Successfully Response

This function will be used to return a created successfully response.

example:

Caching

This functions will be used by the microservice to handle caching data.

Creating Object From Caching class

and you can change the default connection on object creation by passing the connection name to the constructor.

or you can change the default connection after object creation by using the setConnection function.

and you can change the default connection after object creation by using the setConnection function.

Caching Functions

Filters

This functions will be used by the microservice to handle filtering data.

Creating Object From FilterManager class

filters data is the data that will be used to apply filters.

the default filters data will be set to the request data with key filter, and you can set filters data on object creation by passing the filters data to the constructor.

or you can set the filters data after object creation by using the setFiltersData function.

and you can set the filters data after object creation by using the setFiltersData function.

Build Filters

by default the operator will be set to =, you can pass the operator to the function to apply the operator to the filter.

by default, when applying the filters the value for this where filter will be taken from the filters data with the same key as the column name, you can pass difference key to the function to apply the value to the filter.

by default, when applying the filters the value for this where filter will be taken from the filters data with the same key as the column name, you can pass difference key to the function to apply the value to the filter.

by default, when applying the filters the value for this where filter will be taken from the filters data with the same key as the column name, you can pass difference key to the function to apply the value to the filter.

by default, when applying the filters the value for this where filter will be taken from the filters data with the same key as the relation name, you can pass difference key to the function to apply the value to the filter.

by default, when applying the filters the value for this where filter will be taken from the filters data with the same key as the relation name, you can pass difference key to the function to apply the value to the filter.

by default the operator will be set to >=, you can pass the operator to the function to apply the operator to the filter.

by default, when applying the filters the value for this where filter will be taken from the filters data with the same key as the column name, you can pass difference key to the function to apply the value to the filter.

$filterKey is the key that will be used to check if this filter will be applied or not.

by default the operator will be set to =, you can pass the operator to the function to apply the operator to the filter.

by default the operator will be set to >=, you can pass the operator to the function to apply the operator to the filter.

Applying Filters

Now you can simply call function applyFilters from $filterManager object.

And your data will be filtered.

Example

Logging

Logging Types

Functions

For each type there are an static function to handle it, all function have two parameters string $message and array $context = [].

Form Request

extends the DD\MicroserviceCore\Abstracts\ApiFormRequest abstract class.


All versions of microservice-package with dependencies

PHP Build Version
Package Version
Requires itspire/monolog-loki Version ^2.1
monolog/monolog Version ^3.5
open-telemetry/opentelemetry-logger-monolog Version ^1.0
predis/predis Version ^2.2
vladimir-yuldashev/laravel-queue-rabbitmq Version ^13.3
knuckleswtf/scribe Version ^4.29
maatwebsite/excel Version ^3.1
barryvdh/laravel-snappy Version ^1.0
h4cc/wkhtmltopdf-amd64 Version 0.12.x
pestphp/pest Version ^2.34
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 andro-adel/microservice-package contains the following files

Loading the files please wait ....