Skip to content

balboacodes/php-utils

Repository files navigation

PHP Utils

publish

About PHP Utils

PHP Utils is a collection of native PHP functions ported to TypeScript. It was originally developed as part of the Laravel Helpers package, but is now a standalone package. Some functions do not include all the functionality of their native versions, so if you see something missing or would like another function added, please submit a pull request! The full list of functions is too many to list here, but you can check out the src file and do a simple search to see what's available.

Installation

npm i @balboacodes/php-utils

Usage

import { preg_split } from @balboacodes/php-utils;

const parts = preg_split('/[\\s,]+/', 'hypertext language, programming'); // ['hypertext', 'language', 'programming']

Related

If you like this package, be sure to check out our other packages.

About

A collection of native PHP functions ported to TypeScript

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published