Download the PHP package drewlabs/libman without Composer

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

Libman

Libman package is a small PHP utility library used in installing, creating business specific class instance using configuration based approach. The package comes YAML and JSON library definitions provider, used by the runtime instance builder.

Concept

A library in the libman package implementation is a pure abstraction arround a PHP object that performs a specific task, or a set of tasks. A PHP object having business domain specific implementation that that must be required by another PHP application.

Libman tries to provides an API for building instances of a library (class) at runtime without developper programmatically creating instances. Developper provides configuration values about which type of package manager to use when adding library to the project, the factory class that is used to create an instance of the library.

Using developper configuration, written in YAML/JSON, or any library definition provider, Libman will be capable of create library instance at runtime when required in application code.

Installation

To add the library to your PHP application using composer manager:

composer require drewlabs/libman

Usage

Composer based libraries are PHP library installable using PHP composer package manager. The library manager assume by default that the library factory class is name Factory.

A factory class based library configuration is a library configuration, that will use a PHP factory class to create an instance of library.

LibraryManager is a PHP class provided by the libman for creating libary instance based on configuration files or database configurations.

The code below use an InMemoryConfigurationRepository class that will read library configuration from a yaml definition file.

The LibraryManager class comes with static method createInstance that takes a library configuration instance:

API Reference

The API reference for the library can be found at []


All versions of libman with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
symfony/process Version ^3.4|^4.0|^5.0|^6.1
composer-runtime-api Version ^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 drewlabs/libman contains the following files

Loading the files please wait ....