Skip to content

Curried, composable versions of the standard PHP functions

License

Notifications You must be signed in to change notification settings

mckayb/phantasy-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phantasy-PHP CircleCICoverage Status

Curried versions of common PHP functions.

Getting Started

Installation

composer require mckayb/phantasy-php

Usage

use function Phantasy\PHP\{explode, implode};

$explodeBySpace = explode(' ');
$arr = $explodeBySpace('foo bar');
// ['foo', 'bar']

$implodeWithCommas = implode('-');
$implodeWithCommas($arr);
// 'foo,bar'

For more information, read the docs!

What's Included

I'm slowly working my way up to all of the PHP functions, but I should have most of the ones that people use in their everyday code covered. If I'm missing one that you need, let me know by opening up an issue or a pull request.

Contributing

Find a bug? Want to make any additions? Just create an issue or open up a pull request.

Inspiration

About

Curried, composable versions of the standard PHP functions

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages