Download the PHP package resolver-interop/interface without Composer

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

Resolver-Interop Standard Interface Package

Resolver-Interop provides an interoperable package of standard interfaces for autowiring resolver functionality. It reflects, refines, and reconciles the common practices identified within several pre-existing projects.

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 (RFC 2119, RFC 8174).

Interfaces

This package defines the following interfaces:

ClassResolver

ClassResolver affords resolving a class to a new instance, and indicating whether a class may be resolved at all.

ClassResolver Methods

ReflectionParametersResolver

ReflectionParametersResolver affords resolving an array of ReflectionParameter instances into an array of arguments.

ReflectionParametersResolver Methods

ReflectionParameterResolver

ReflectionParameterResolver affords resolving a ReflectionParameter to an argument value.

This interface is also suitable for implementation on an Attribute to resolve a custom argument on a parameter.

ReflectionParameterResolver Methods

ReflectionTypeResolver

ReflectionType to a string name, or null if it cannot be resolved.

ReflectionTypeResolver Methods

ReflectionMethodsResolver

ReflectionMethodsResolver affords instantiating and invoking ReflectionMethodResolver attributes on object methods.

ReflectionMethodsResolver Methods

ReflectionMethodResolver

ReflectionMethodResolver affords method injection when implemented on a method-targeted Attribute.

ReflectionMethodResolver Methods

ReflectionPropertiesResolver

ReflectionPropertiesResolver affords instantiating and invoking ReflectionPropertyResolver attributes on object properties.

ReflectionPropertiesResolver Methods

ReflectionPropertyResolver

ReflectionPropertyResolver affords property injection when implemented on a property-targeted Attribute.

ReflectionPropertyResolver Methods

CallResolver

CallResolver affords resolving a callable's parameters and invoking it, returning the call's result.

CallResolver Methods

Resolvable

Resolvable affords an implementing object the ability to resolve itself to a value.

Resolvable Methods

ResolverThrowable

Exception as resolver-related.

It adds no class members.

Implementations

Q & A

Why are there so many interfaces?

The researched projects typically afford autowiring through a single container class with several methods (get(), make(), call(), and so on), each performing a distinct resolution task.

Resolver-Interop opts to split those operations into separate interfaces. Doing so allows consumers to depend only on the specific methods they need, and implementors to combine them as they see fit.

Why are setter-injection and property-injection supported?

Constructor injection is the documented default across all the researched projects. Setter-injection is generally supported, whereas property-injection is far less common.

Resolver-Interop summarizes this guidance evident from the projects:

Thus, while Resolver-Interop does not forbid post-construction injection, it attempts to make explicit the appropriate scope for these alternative forms of injection.



All versions of interface with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
ioc-interop/interface Version 1.x@dev
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 resolver-interop/interface contains the following files

Loading the files please wait ...