2017 © Pedro Peláez
 

component utility

Zebba Utility Component

image

zebba/utility

Zebba Utility Component

  • Monday, December 22, 2014
  • by zebba
  • Repository
  • 1 Watchers
  • 0 Stars
  • 425 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 5 % Grown

The README.md

Utility

Installation

Modify your composer.json:, (*1)

{
    "require" : {
        "zebba/utility" : "1.*"
    }
}    

Usage

ClassUtility

``` php <?php, (*2)

$method = ClassUtility::generateMethodName(ClassUtility::ACCESS_GET, 'foo'); // getFoo $method = ClassUtility::generateMethodName(ClassUtility::ACCESS_SET, 'foo'); // SetFoo, (*3)

$method = ClassUtility::generateMethodName(ClassUtility::ACCESS_GET, 'foo_bar'); // getFooBar $method = ClassUtility::generateMethodName(ClassUtility::ACCESS_GET, 'foo bar'); // getFooBar $method = ClassUtility::generateMethodName(ClassUtility::ACCESS_GET, 'fooBar'); // getFooBar, (*4)


### ParameterConverter ``` php <?php $now = new \DateTime('now'); $period = new \DateInterval('P1D'); try { $datetimes = ParameterConverter::toArray($now, '\DateTime'); // array($now) #$datetimes = ParameterConverter::toArray(array($now, $now, $now), '\DateTime'); // array($now, $now, $now) #$datetimes = ParameterConverter::toArray(array($now, $interval), '\DateTime'); // \DomainException } catch (\DomainException $e) { throw $e; }

The Versions

22/12 2014

dev-master

9999999-dev https://github.com/zebba/Utility

Zebba Utility Component

  Sources   Download

MIT

The Requires

  • php >=5.3.1

 

by Sebastian Kuhlmann

22/12 2014

1.0

1.0.0.0 https://github.com/zebba/Utility

Zebba Utility Component

  Sources   Download

MIT

The Requires

  • php >=5.3.1

 

by Sebastian Kuhlmann