Download the PHP package aplia/support without Composer

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

PHP helper classes and functions

This package contains extra support classes and functions for making it easier to work with PHP. It implements some features which are missing from PHP but which are commonly required, for instance array and path manipulation.

Latest Stable Version Minimum PHP Version

All classes are placed under the namespace Aplia\Support, for instance:

Installation

Install with Composer:

Arr

Various functionality for working with arrays. These are mostly taken from the Laravel framework and placed in this repository to avoid extra dependencies.

Arr::get

A typical use case is to support keyword arguments to a function by passing an array as a parameter. Arr::get can then be used to easily fetch a parameter if it is set or use a default value.

Path

Path manipulation such as joining multiple files/dir names into one path.

LoggerAdapter

Adapts the PSR logger interface to eZ debug, add this as a handler to any PSR log. If the class eZDebug exists it will pass log messages along.

Val

Enforces a variable to a simple value, closures are called to get the real value.

VirtualProperties

Available since: 1.1

A trait which makes it easier to create classes with virtual properties.

Virtual properties are properties that doesn't exist on the object but are bound to a function that gets called when the property name is accessed on the object. This is all done using the PHP magic methods __get(), __isset(), __set() and __unset().

If the class extends a base class and that class also implements __isset() etc. VirtualProperties will make sure they are called as part of the checks.

If __baseProperties() exists it will use this to add in extra properties when __properties() is called.

Property lookup is strict by default and will throw PropertyError for missing properties in __get(), to disable strictness reimplement the method __requireProperties() and make it return false.

Example of a class using all functionality, it will have the following properties:

TemplateAttributes

Available since: 1.1

A trait which gives the class support for eZ publish template attributes.

By using this trait the classes will allow instances to be used in eZ publish templates. The attributes will map to the existing properties or virtual properties on the class.

Works best when combined with VirtualPropertes.

License

The helper library is open-sourced software licensed under the MIT license.


All versions of support with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3
composer/composer Version >=1.0
ext-mbstring Version *
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 aplia/support contains the following files

Loading the files please wait ....