Note: This repository is a standalone package and does not require the BasePHP framework. If you would like to learn more about the framework, visit BasePHP. You may use this essential package and it's common functionality in your packages, projects and applications.
This package will help simplify your PHP development. PHP core functions are never consistent with it's naming conventions, and this package gives you an alternative that simplifies the use of common php functionality. This package has no dependencies and can be used in any of your PHP projects.
Install using composer (or download and include manually).
composer require basephp/support
Note: If you're using BasePHP, this package is already included.
This package includes the following:
Class | Documentation | Subject | Description |
---|---|---|---|
Arr |
Documentation | Array | Working with Arrays |
Str |
Documentation | String | Working with Strings |
Num |
Documentation | Number | Working with Numbers |
Filesystem |
Documentation | File System | Working with the File System |
Collection |
Documentation | Collections | Wrapper for working with arrays of data |
Container |
Documentation | Instances | Wrapper for working with instances |
Pipeline |
Documentation | Instances | Ability to pass an instance through stages |
This package was designed to be independent from any specific framework and to give all your projects consistency.
Inspired by core helpers from the Laravel framework.
Anyone can contribute to the library. Please do so by posting issues when you've found something that is unexpected or sending a pull request for improvements.
This package is open-sourced software licensed under the MIT license.