Download the PHP package lagdo/facades without Composer

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

Build Status Scrutinizer Code Quality StyleCI codecov

Latest Stable Version Total Downloads License

Base classes for service facades

This package provides base classes for service facades implementations.

The goal of the separation between this package and the framework related ones is to make the facades portable across different frameworks. A service facade can be use without any change with various frameworks, provided that a package for this framework is available, or a PSR-11 container can be provided.

The following packages are currently available:

Facades definition

The Lagdo\Facades\AbstractFacade abstract class is the base class for user defined service facades.

If a given service doesn't need to be fetched from the container at each call, it can be saved in its facade class by using the Lagdo\Facades\ServiceInstance trait.

[!IMPORTANT] The Lagdo\Facades\ServiceInstance trait must be used in each service facade class, and not in a parent class. The same instance will be shared by all the classes inheriting the same base class using the trait, and the service facades will ot work as expected.

The service container will be called only once in the above example.

Container setup

The Lagdo\Facades\ContainerWrapper class gives access to the underlying container.

It needs to be provided with a PSR-11 container, which will be done by the framework specific packages, but can also be done by the developer in case a package is not available.

Provided facade and service

A default facade and a default service are provided for logging.

If the provided PSR-11 container already has a PSR-3 logger registered, then the Lagdo\Facades\Logger facade can be used.

A simple PSR-3 logger implementation is also provided. It will return the local services, and revert to the already defined container for the other services.

Contribute

License

The package is licensed under the 3-Clause BSD license.


All versions of facades with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0.0
psr/container Version ^1.0 || ^2.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 lagdo/facades contains the following files

Loading the files please wait ...