Download the PHP package lukaszmakuch/property-setter without Composer

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

travis

PropertySetter

Sets properties of already existing objects.

Usage

Different setters

PropertySetter

Describes how to use any property setter.

SimplePropertySetter

Injects values obtained from a value source to objects described by a target specifier using some property setting strategy.

SilentPropertySetter

It's a decorator that prevents the decorated setter from throwing the UnsupportedTarget exception if some object is not supported.

SimpleChainOfPropertySetters

It tries to set properties of an object using all of its setters. It doesn't prevent any exceptions.

SilentChainOfPropertySetters

It's a decorator that ignores a situation when some setter doesn't support objects of some type. It prevents throwing the UnsupportedTarget exception. When one of its setter throws an exception, it keeps trying to use other setters.

Setting strategies

CallSetterMethod

Calls a setter in order to set a property.

CallOnlyMethodAsSetter

Calls a setter in order to set a property.

Target specifiers

PickByClass

Selects targets by their classes.

Value Sources

UseDirectly

Simply holds some value without modyfing it before it's returned.

Exceptions

UnableToSetProperty

\lukaszmakuch\PropertySetter\Exception\UnableToSetProperty

It's the parent of any exception that may be thrown by the setPropertiesOf method. When the setter method throws an exception, it's wrapped in this one (and becomes available by calling the getPrevious method).

UnableToGetValue

\lukaszmakuch\PropertySetter\Exception\UnableToGetValue

Thrown when it's impossible to get a value (from a value source). It inherits from the UnableToSetProperty exception.

UnableToGetValue

\lukaszmakuch\PropertySetter\Exception\UnsupportedTarget

Thrown when trying to set properties of an object that is not supported. It inherits from the UnableToSetProperty exception.

Installation

Use composer to get the latest version:


All versions of property-setter with dependencies

PHP Build Version
Package Version
No informations.
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 lukaszmakuch/property-setter contains the following files

Loading the files please wait ....