Download the PHP package jimmyoak/utilities without Composer
On this page you can find all versions of the php package jimmyoak/utilities. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package utilities
JimmyOak Utilities
- Installation
- Features
- Examples
- Collections
- Collection
- TypedCollection
- Set
- TypedSet
- Event Publisher
- DataType
- Enum
- SimpleValueObject
- ArrayUtils
- Flatten
- ToXmlString and ToXml
- ObjectUtils
- ToArray
- ToXmlString and ToXml
- StringUtils
- BeginsWith
- EndsWith
- RemoveAccents
- RemoveExtraSpaces
- IsUrl and IsEmail
- FileUtils
- ExtensionIs
- MakePath
- GetExtension
- GetNameWithoutExtension
- ScanDir
- Collections
- Quality
- Contribute
- Authors
- License
Installation
Use Composer to install the package:
For PHP 5.3 compatibility use *.*.*b versions (yep, I marked them as beta versions):
Features
- Collection and Set utilities (Typed/Untyped collections and sets)
- Enum base class
- SimpleValueObject base class
- Event publisher
- Array utilities
- File utilities
- String utilities
Examples
Collections
Collection
TypedCollection
Set
You can fill the collection with object, scalars...
TypedSet
You can fill the collection with object, scalars...
Of course you can hipervitaminate these classes:
EventPublisher
DataType
Enum
SimpleValueObject
Utility
ArrayUtils
Flatten
ToXmlString and ToXml
ObjectUtils
ToArray
ToXmlString and ToXml
Note: ToXml would do the same but returns a SimpleXml object
StringUtils
BeginsWith
EndsWith
Same behaviour as beginsWith but with ending needle.
RemoveAccents
RemoveExtraSpaces
IsUrl and IsEmail
FileUtils
ExtensionIs
MakePath
GetExtension
GetNameWithoutExtension
ScanDir
See FileUtilsTest better :P
Quality
To run the PHPUnit tests at the command line, go to the tests directory and issue phpunit
.
This library attempts to comply with PSR-2 and PSR-4.
If you notice compliance oversights, please send a patch via pull request.
Contribute
Contributions to the package are always welcome!
- Report any bugs or issues you find on the issue tracker.
- You can grab the source code at the package's Git repository.
Authors
- [Adrián Robles Maiz (a.k.a Jimmy K. Oak)] (http://github.com/jimmyoak)
License
The code base is licensed under the MIT license.