Download the PHP package gamernetwork/yolk-support without Composer

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

Want to work for Gamer Network? We are hiring!

Yolk Support

Scrutinizer Code Quality

Provides various supporting elements to the Yolk framework, such as:

Requirements

This library requires only PHP 5.4 or later and the Yolk Contracts package (gamernetwork/yolk-contracts).

Installation

It is installable and autoloadable via Composer as gamernetwork/yolk-support.

Alternatively, download a release or clone this repository, and add the \yolk\support namespace to an autoloader.

License

Yolk Support is open-sourced software licensed under the MIT license.

Collections

This package provides basic implementation of the Collection, Dictionary and Set interfaces defined in the yolk-contracts package.

BaseCollection accepts an array of items in its constructor and provides basic collection operations such as iteration, counting, emptying and testing for existence. There is no support for adding or removing individual items, this being provided by specific subclasses.

BaseDictionary extends BaseCollection to add support for adding and removing key/value pairs - each key being unique.

BaseSet extends BaseCollection to add support for adding and removing unique items.

Configuration

BaseConfig provides a basic configuration object, the underlying implementation being an array. The array can be populated from an external file via load(), or from an existing array via merge(). Methods are also provided to allow easy access to nested elements.

Fieldsets and Fields

A field represents an object property, database column or similar construct.

Fieldsets are collections of Fields and can be used as database table/model definitions, html form definitions, etc.

Fields

A Field must have a name and a type and may optionally have additional rules defining rules for values that are considered valid.

Supported field types are listed in yolk\contracts\support\Type.

Available Rules:

Specified rules are available as properties on a Field object; e.g. $f->required. Fields are immutable once instantiated.

There are two methods provided for validation:

Fieldsets

Fields are added via the add() method:

All Fields in the Fieldset can be validated at once by calling the validate() method and passing an array of field names and values. The return value is an array containing two elements, the first is an array of 'cleaned' values, indexed by Field name; the second is an array of validation errors, indexed by Field name.

Twig Extension

The Twig extension provides additional utility functionality to Twig environments.

Tests (is):

Filters

Functions

If the yolk-core package is detected, most Helper methods are included as filters or functions where there is no corresponding native functionality.

Validation

The yolk\support\Validator class contains static methods for validating values. Where possible validation is performed using PHP's built-in filter_var() function with appropriate flags. Validation function will return a valid value of the correct type, or an empty value of the correct type.


All versions of yolk-support with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
gamernetwork/yolk-contracts Version 1.*
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 gamernetwork/yolk-support contains the following files

Loading the files please wait ....