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::isInstance
handling of non-objects.
v0.6.3.1 - 2014/05/28
- Created
FunctionsTrait::throwOnInvalidArgument
.
v0.6.2 - 2014/05/19
- Bug fix in
Arrays
class.
v0.6.1 - 2014/05/13
- Minor fixes for Psr\Log.
v0.6.0 - 2014/04/01
- The
Functions
class is now a trait,FunctionsTrait
. - Renamed the class
Complete
toSmartCallable
. - Created the
ConfigurableCallable
class. - Created the
Comparator
class.
v0.5.0 - 2014/03/31
- Created the
Conversions
class. - The
Profiler::run
method outputs memory usage. - Refactored the
ErrorHandler
class.
v0.4.1 - 2014/03/30
- Created the
Functions::swapArgs
method. - Refactored some of the code in the
ErrorsHandler
class.
v0.4.0 - 2014/03/30
- Created the
ErrorsHandler
class. - Created the
Errors
class. - Created the
Arrays::remove
method.
v0.3.2 - 2014/03/29
- Created the
Strings::truncate
method. - Removed the
Strings::split
method. - Created the
Profiler
class. - Made
psr/Log
a requirement.
v0.3.1 - 2014/03/27
- Merged the
Validator
class into theFunctions
class.
v0.3 - 2014/03/26
- Renamed the namespace
Headzoo\Utilities
toHeadzoo\Core
. - Renamed the project
headzoo/core
. - Created core class
Obj
. - Added the trait
ConstantsTrait
. - Created the
ConstantsTrait
trait. - Created the
AbstractEnum
class. - The
Strings
class is now made to work seamlessly with multi-byte strings. - Renamed
Strings::transformCamelCaseToUnderscore
toStrings::camelCaseToUnderscore
. - Renamed
Strings::transformUnderscoreToCamelCase
toStrings::underscoreToCamelCase
. - Added new methods to the
Strings
class: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::invoke
to public.
v0.2 - 2014/03/24
- Added the
Complete
class.
v0.1 - 2014/03/23
- First version released under MIT license.
TODO
- Replace
Strings
constants with enums.
License
This content is released under the MIT License. See the included LICENSE for more information.