Download the PHP package chkt/eve without Composer

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

eve

A minimalistic, flexible and powerful dependency injector

eve is a small (~250 lines of executable code), self contained dependency injector choosing a configuration approach over reflection, annotations or similar meta-programming techniques.

Dependencies are defined in code alongside their classes offering a high level of control over object creation, sharing and caching.

Install

You can use composer to install eve.

Command line

composer.son

Alternatively you can clone the github repository to a place of your liking.

Basic usage

The injector depends on a couple of helpers to resolve and inject dependencies. All of these are combined into the InjectorDriver.

The first line creates the BaseFactory, which supplies the basic means of instantiating objects. In the second line the BaseFactory is used to create the InjectorDriverFactory, which in line three creates the InjectorDriver.

The types of injectable objects depend on the configuration of the driver. The options for configuring the driver are listed in the driver folder.

Using the injector is straightforwand.

The optional second argument allows additional configuration options to be passed to the injector.

Since eve is not using reflection or other meta-programming techniques, it depends on injectable objects implementing \eve\inject\IInjectable, which defines the single static method getDependencyConfig.

The getDependencyConfig method defines what kind of arguments new instances of the class are to be created with.

Dependencies can either be arrays with a 'type' and one or more additional keys, or be defined using entity syntax, referring to dependencies through url formatted strings.

In the example above the injector will inject itself as the first constructor argument. The second argument is an object registered as 'providableObject' at the provider named 'providerName' and configured with key=value.

If the injector was supplied with an array containing a property named 'options', as its second argument, it is supplied as the third argument.

If no second argument was supplied to the injector or it did not contain an 'options' property, getDependencyConfig returns an empty array as the third argument.


All versions of eve with dependencies

PHP Build Version
Package Version
Requires php Version ^7.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 chkt/eve contains the following files

Loading the files please wait ....