mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 01:31:45 +01:00
794 B
794 B
Meritoo Common Library
Useful classes, methods, extensions etc.
Installation
Composer
-
Open
composer.jsonand add address of repository inrepositoriessection:"repositories": [ { "type": "vcs", "url": "git@github.com:meritoo/common-library.git" } ] -
Run Composer to install new package:
$ composer require meritoo/common-library
How to install Composer: https://getcomposer.org/download
Usage
This package contains a lot of static methods, so usage is not so complicated. Just run the static method who would you like to use. Example:
use Meritoo\Common\Utilities\Arrays;
$firstElement = Arrays::getFirstElement(['lorem' 'ipsum']);
// result: "lorem"
Enjoy!