-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Sajeeb Ahamed edited this page May 18, 2021
·
7 revisions
composer
is needed for installing the package. If you have composer installed then run the command.
composer require ahamed/jsphp
After successful installation, include the library in your project.
require_once __DIR__ . '/vendor/autoload.php';
use Ahamed\JsPhp\JsArray;
$data = [1, 2, 3, 4, 5];
$array = new JsArray($data);
$square = $array->map(
function ($item) {
return $item * $item;
}
);
print_r($square);
JsPhp
is a utility library for PHP for managing the Array, Object, String methods more organize way and easily.
- Code - https://github.com/ahamed/jsphp
- Facebook - https://www.facebook.com/ahamed.jsphp
- Instagram - https://www.facebook.com/ahamed.jsphp
- Twitter - https://www.facebook.com/ahamed.jsphp