Skip to content

MammutAlex/laravel-collection-thanos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Code Climate StyleCI

Installation

Require this package in your composer.json and update composer.

"mammut-alex/laravel-collection-thanos": "^1.0"

or composer require mammut-alex/laravel-collection-thanos

Introduction

Thanos is disaster some of you collection.

Here is an example

    $data = new Collection([1, 2, 3, 4, 5, 6, 7, 8, 9,10]);
    $data->thanos()->all();//[2,4,5,8,10]

Also you can choose the degree of kindness of the Thanos (what percentage of creature he items to have mercy)

    $data = new Collection([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);
    $data->thanos(20)->all();//[2,5]

License

Laravel Collection Thanos is open-sourced software licensed under the MIT license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages