Download the PHP package plugin-master/container without Composer

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

Simplified Dependency Injection Container For PluginMaster (Or any PHP project)

Simplified dependency injection container for PHP project. We create this package for PluginMaster(WordPress Plugin Development Framework)

Dependency Injection Containers are mainly used for managing the dependencies required by classes and their methods. When we need to create an instance of a class or call a method of a class, a container helps us deal with these dependencies smoothly.

I've developed this new PHP container with the goal of streamlining and simplifying dependency management. The functions it provides:

  1. get: This function allows you to retrieve an instance of a class or an alias that's already been defined.

  2. make: for creating a new instance of a class, using any necessary parameter also it will replace resolved objects that created with provided class name.

  3. call: To invoke a method of a class. It can take callable arguments in various formats like

    a.
    b.
    c.
    d. ( will fire _invoke method).

  4. set: Assigns an alias to a class or a callback function. has: Checks if the container has resolved a certain class or alias.

In short, I developed this new PHP container to simplify dependency management, making it more accessible and straightforward, especially for projects that don't require more advanced features.

Install Package:

Example:

1. Set Alias

2. Get Alias

3. Call A method of class or callback function

4. Make A Object from Class

5. get Object from provided class

6. Check Resolved Object or alias exist

Test

1. Clone Repo

2. Install Dependency

3. Run Index.php file


All versions of container with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
psr/container 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 plugin-master/container contains the following files

Loading the files please wait ...