Download the PHP package yii2mod/yii2-helpers without Composer

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

Yii2 Helpers

This extension is a collection of useful helper functions for Yii Framework 2.0.

Latest Stable Version Total Downloads License Build Status

Installation

The preferred way to install this extension is through composer.

Either run

or add

to the require section of your composer.json file.

Available Methods

  1. add()
  2. average()
  3. collapse()
  4. except()
  5. has()
  6. first()
  7. flatten()
  8. last()
  9. only()
  10. pluck()
  11. prepend()
  12. pull()
  13. set()
  14. sort()
  15. sortRecursive()
  16. where()
  17. xmlStrToArray()

Method Listing

Add a given key / value pair to the array if the given key doesn't already exist in the array:


Get the average value of a given key:

You may also pass a key to the average method:


Collapse an array of arrays into a single array:


Get all of the given array except for a specified array of items:


Check if an item exists in an array using "dot" notation:


Return the first element in an array passing a given truth test:


Flatten a multi-dimensional array into a single level:


Return the last element in an array passing a given truth test:


Get a subset of the items from the given array:


Push an item onto the beginning of an array:


The function retrieves all of the collection values for a given key:

You may also specify how you wish the resulting collection to be keyed:


Get a value from the array, and remove it:


Set an array item to a given value using "dot" notation:


Sort the array using the given callback:


Recursively sort an array by keys and values:


Filter the array using the given Closure.:


Convert xml string to array.

StringHelper


All versions of yii2-helpers with dependencies

PHP Build Version
Package Version
Requires yiisoft/yii2 Version >=2.0.5
yii2mod/collection 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 yii2mod/yii2-helpers contains the following files

Loading the files please wait ....