| 1 |
## Classes |
| 2 |
|
| 3 |
- Utility: General utility methods. |
| 4 |
- Job: Job and processing handling. |
| 5 |
- Loader: PSR class loader. |
| 6 |
|
| 7 |
## Utility Methods |
| 8 |
|
| 9 |
- extend() |
| 10 |
- defaults() |
| 11 |
- pluralize() |
| 12 |
- singularize() |
| 13 |
- ordinalize() |
| 14 |
- hashify_file_name() |
| 15 |
- can_get_image() |
| 16 |
- ... |
| 17 |
|
| 18 |
## Changelog |
| 19 |
|
| 20 |
0.2.4 |
| 21 |
- Added Utility::hashify_file_name() method; |
| 22 |
- Added seperator options to Utility:;create_slug() to support things such as "::" |
| 23 |
|
| 24 |
## Usage |
| 25 |
|
| 26 |
```PHP |
| 27 |
// Extend an Array or Object with another for easily setting of defaults. This is similar to extend() but in reverse. |
| 28 |
$settings = UsabilityDynamics\Utility::defaults( $configurationObject, $defaultsObject ); |
| 29 |
|
| 30 |
// Find composer.json file and return as Object. |
| 31 |
$composer = UsabilityDynamics\Utility::findUp( 'composer.json', __DIR__ ); |
| 32 |
echo "Versio is {$composer->version}." |
| 33 |
``` |
| 34 |
|
| 35 |
|
| 36 |
## License |
| 37 |
|
| 38 |
(The MIT License) |
| 39 |
|
| 40 |
Copyright (c) 2013 Usability Dynamics, Inc. <[email protected]> |
| 41 |
|
| 42 |
Permission is hereby granted, free of charge, to any person obtaining |
| 43 |
a copy of this software and associated documentation files (the |
| 44 |
'Software'), to deal in the Software without restriction, including |
| 45 |
without limitation the rights to use, copy, modify, merge, publish, |
| 46 |
distribute, sublicense, and/or sell copies of the Software, and to |
| 47 |
permit persons to whom the Software is furnished to do so, subject to |
| 48 |
the following conditions: |
| 49 |
|
| 50 |
The above copyright notice and this permission notice shall be |
| 51 |
included in all copies or substantial portions of the Software. |
| 52 |
|
| 53 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, |
| 54 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 55 |
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 56 |
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
| 57 |
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
| 58 |
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
| 59 |
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 60 |
|