Download the PHP
package tuvi/easycut without Composer
On this page you can find all versions of the php package
tuvi/easycut. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
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.
EasyCut is a tiny toolkit for quickly cutting a simple or multidimensional array in php
by specifying an index, a value or a key-value pair that exists in the array.
Requirements
php
composer
Installation
In your terminal/command line, run composer install tuvi/easycut. Make sure you add use Tuvi\EasyCut; to the top of the file where you'll be using EasyCut
Use cases
1 EasyCut for a simple array
Using
as a sample simple array usage of EasyCut, the following are the operations and methods that can be
performed and called on the $easyCut instance of EasyCut
i). Get a subarray from the beginning of the original array up to an index, including the value at that index
ii). Get a subarray from the beginning of the original array up to a value, including the value
iii). Get a subarray from the beginning of the original array before an index, excluding the value at that index
iv). Get a subarray from the beginning of the original array before before a value, excluding that value
v). Get a subarray from an index up to the end of the original array, including the value at that index
vi). Get a subarray starting from a value up to the end of the original array, including the value
vii). Get a subarray after an index up to the end of the original array, excluding the value at that index
viii). Get a subarray after a value up to the end of the original array, excluding the value
2 EasyCut for a multidimensional array
Using
as a sample multidimensional array usage of EasyCut, the following are the operations and methods that can be
performed and called on the $easyDeepCut instance of EasyCut
ix). Get a subarray starting from the beginning of the original array until the index where a key value pair occurs in the original array, including the item at index where the key value pair occurs
x). Get a subarray starting from the beginning of the original array up to the index before where a key value pair occurs in the original array, excluding the item at index where the key value pair occurs
xi). Get a subarray starting from the index where a key value pair occurs in a multidimensional array up to the end of the original array, including the item at index where the key value pair occurs
xii). Get a subarray starting after the index where a key value pair occurs in a multidimensional array up to the end of the original array, excluding the item at the index where the key value pair occurs
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 tuvi/easycut contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.