Download the PHP package headzoo/core without Composer
On this page you can find all versions of the php package headzoo/core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package core
Headzoo Core v0.6.3.2
A collection of use PHP utility classes and functions.
- Overview
- Requirements
- Installing
- Class Overview
- Quick Start
- Change Log
- License
Overview
This project is a collection of classes, methods, and functions which I've created over the years, and I use them in most of my other projects. The purpose of this project is putting all my useful code in one place. I'll be adding to this framework as I find useful classes from my other projects that I think should go into the core.
Requirements
Installing
The library may be installed using either git or composer.
Git
Simply clone the project with the following command.
Composer
Add the project to your composer.json as a dependency.
Class Overview
The full class API documentation is available in the wiki.
Core\Arrays
Contains static methods for working with arrays.
Core\Strings
Contains static methods for working with strings.
Core\Objects
Contains static methods for working with objects and classes.
Core\ErrorHandler
Used to capture and gracefully handle core errors and exceptions.
Core\Errors
Utility class used to work with E_ERROR constants.
Core\Profiler
Used to profile code.
Core\Conversions
Utility class for converting from one value to another.
Core\ConstantsTrait
Trait for reflecting on class constants.
Core\AbstractEnum
Abstract class for creating enumerator classes.
Core\SmartCallable
Used to call a function when a resource is no longer needed.
Core\ConfigurableCallable
Creates a callable instance with configurable behavior.
Core\FunctionsTrait
Contains methods for working with functions and methods.
Core\Comparator
Contains static methods for making comparisons between values.
Quick Start
This quick start guide briefly goes over a few of the classes. The full class API documentation is available in the /docs directory.
Core\Strings
Core\Arrays
Core\Objects
Core\ErrorHandler
Core\Profiler
Core\AbstractEnum
Core\SmartCallable
Core\ConfigurableCallable
Core\Conversions
Change Log
v0.6.3.2 - 2014/06/24
- Change to
Objects::isInstancehandling of non-objects.
v0.6.3.1 - 2014/05/28
- Created
FunctionsTrait::throwOnInvalidArgument.
v0.6.2 - 2014/05/19
- Bug fix in
Arraysclass.
v0.6.1 - 2014/05/13
- Minor fixes for Psr\Log.
v0.6.0 - 2014/04/01
- The
Functionsclass is now a trait,FunctionsTrait. - Renamed the class
CompletetoSmartCallable. - Created the
ConfigurableCallableclass. - Created the
Comparatorclass.
v0.5.0 - 2014/03/31
- Created the
Conversionsclass. - The
Profiler::runmethod outputs memory usage. - Refactored the
ErrorHandlerclass.
v0.4.1 - 2014/03/30
- Created the
Functions::swapArgsmethod. - Refactored some of the code in the
ErrorsHandlerclass.
v0.4.0 - 2014/03/30
- Created the
ErrorsHandlerclass. - Created the
Errorsclass. - Created the
Arrays::removemethod.
v0.3.2 - 2014/03/29
- Created the
Strings::truncatemethod. - Removed the
Strings::splitmethod. - Created the
Profilerclass. - Made
psr/Loga requirement.
v0.3.1 - 2014/03/27
- Merged the
Validatorclass into theFunctionsclass.
v0.3 - 2014/03/26
- Renamed the namespace
Headzoo\UtilitiestoHeadzoo\Core. - Renamed the project
headzoo/core. - Created core class
Obj. - Added the trait
ConstantsTrait. - Created the
ConstantsTraittrait. - Created the
AbstractEnumclass. - The
Stringsclass is now made to work seamlessly with multi-byte strings. - Renamed
Strings::transformCamelCaseToUnderscoretoStrings::camelCaseToUnderscore. - Renamed
Strings::transformUnderscoreToCamelCasetoStrings::underscoreToCamelCase. - Added new methods to the
Stringsclass:Strings::startsWith.Strings::endsWith.Strings::startsUpper.Strings::startsLower.Strings::replace.Strings::length.Strings::chars.Strings::toUpper.Strings::toLower.Strings::ucFirst.Strings::lcFirst.Strings::title.Strings::sub.Strings::split.Strings::transform.
v0.2.3 - 2014/03/25
- Increased the minimum PHP version requirement to 5.5.0. Long live, ClassName::class!
- Added the method
Strings::quote. - Added the method
Arrays::conjunct. - Added the method
Functions::swapCallable. - Added the class
Validator.
v0.2.2 - 2014/03/24
- Added the method
Arrays::findString.
v0.2.1 - 2014/03/24
- Changed visibility of
Complete::invoketo public.
v0.2 - 2014/03/24
- Added the
Completeclass.
v0.1 - 2014/03/23
- First version released under MIT license.
TODO
- Replace
Stringsconstants with enums.
License
This content is released under the MIT License. See the included LICENSE for more information.