2017 © Pedro Peláez
 

library ubiq

Functions for readable treatment of string, array & object

image

pixel418/ubiq

Functions for readable treatment of string, array & object

  • Tuesday, March 18, 2014
  • by Pixel418
  • Repository
  • 0 Watchers
  • 9 Stars
  • 9,772 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 23 Versions
  • 6 % Grown

The README.md

Ubiq Build Status

Functions for readable treatment of string, array & object., (*1)

  1. Let's code
    1.1 Simple
    1.2 Readable
    1.3 Normalized
  2. Documentation
    2.1 String manipulation
    2.2 Array manipulation
    2.3 Object manipulation
  3. How to Install
  4. How to Contribute
  5. Author & Community

Let's code

Simple

With Ubiq, your treatments are simple., (*2)

$string = 'example.com/my/path';
\UString::substrBefore( $string, '/' );
// Returns 'example.com'
// Instead of usual implementation: substr( $string, 0, strpos( $string, '/' ) );

↑ top, (*3)

Readable

With Ubiq, even your complex treatments still readable., (*4)

$string = 'example.com/my/path';
\UString::substrBefore( $string, '/' );
// Returns 'example.com'
\UString::substrBefore( $string, [ '/', '.' ] );
// Returns 'example'
\UString::substrBeforeLast( $string, [ '/', '.' ] );
// Returns 'example.com/my'

↑ top, (*5)

Normalized

Ubiq has consistent and normalized api., (*6)

$string = 'my/path';
// Without prefix, the method return the result of the treatment
\UString::startWith( $string, '/' );
// Returns '/my/path'
$string = 'my/path';
// With 'is' prefix, the method return the result of the test
\UString::isStartWith( $string, '/' );
// Returns FALSE
$string = 'my/path';
// With 'do' prefix, the method treat by reference
\UString::doStartWith( $string, '/' );
// $string value is now '/my/path'

↑ top, (*7)

How to Install

If you don't have composer, you have to install it., (*8)

Add or complete the composer.json file at the root of your repository, like this :, (*9)

{
    "require": {
        "pixel418/ubiq": "0.4.*"
    }
}

Ubiq can now be downloaded via composer., (*10)

To use it, you just have to load the composer autoloader :, (*11)

require_once( './vendor/autoload.php' );

↑ top, (*12)

How to Contribute

  1. Fork the Ubiq repository
  2. Create a new branch for each feature or improvement
  3. Send a pull request from each feature branch to the develop branch

If you don't know much about pull request, you can read the Github article., (*13)

All pull requests must follow the PSR1 standard and be accompanied by passing phpunit tests., (*14)

↑ top, (*15)

Author & Community

Ubiq is under the MIT License.
It is created and maintained by Thomas ZILLIOX., (*16)

↑ top, (*17)

The Versions

18/03 2014

dev-develop

dev-develop https://github.com/Pixel418/Ubiq

Functions for readable treatment of string, array & object

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

array string util

30/01 2014

v0.5.0

0.5.0.0 https://github.com/Pixel418/Ubiq

Functions for readable treatment of string, array & object

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

array string util

29/01 2014

dev-master

9999999-dev https://github.com/Pixel418/Ubiq

Functions for readable treatment of string, array & object

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

array string util

29/01 2014

v0.4.7

0.4.7.0 https://github.com/Pixel418/Ubiq

Functions for readable treatment of string, array & object

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

array string util

10/05 2013

v0.4.6

0.4.6.0 https://github.com/Pixel418/Ubiq

Functions for readable treatment of string, array & object

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

array string util

11/03 2013

v0.4.5

0.4.5.0 https://github.com/Pixel418/Ubiq

Functions for readable treatment of string, array & object

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

array string util

11/03 2013

v0.4.4

0.4.4.0 https://github.com/Pixel418/Ubiq

Functions for readable treatment of string, array & object

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

array string util

09/03 2013

v0.4.3

0.4.3.0 https://github.com/Pixel418/Ubiq

Functions for readable treatment of string, array & object

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

array string util

09/03 2013

v0.4.2

0.4.2.0 https://github.com/Pixel418/Ubiq

Functions for readable treatment of string, array & object

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

array string util

26/02 2013

v0.4.1

0.4.1.0 https://github.com/Pixel418/Ubiq

Functions for readable treatment of string, array & object

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

array string util

24/02 2013

v0.4.0

0.4.0.0 https://github.com/Pixel418/Ubiq

Functions for readable treatment of string, array & object

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

array string util

22/01 2013

v0.3.3

0.3.3.0 https://github.com/Pixel418/Ubiq

Functions for readable treatment of string, array & object

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

array string util

19/01 2013

v0.3.2

0.3.2.0 https://github.com/Pixel418/Ubiq

Functions for readable treatment of string, array & object

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

array string util

16/01 2013

v0.3.1

0.3.1.0 https://github.com/Pixel418/Ubiq

Functions for readable treatment of string, array & object

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

array string util

16/01 2013

v0.3.0

0.3.0.0 https://github.com/Pixel418/Ubiq

Functions for readable treatment of string, array & object

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

array string util

15/01 2013

v0.2.3

0.2.3.0 https://github.com/Pixel418/Ubiq

Functions for readable treatment of string, array & object

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

array string util

15/01 2013

v0.2.2

0.2.2.0 https://github.com/Pixel418/Ubiq

Functions for readable treatment of string, array & object

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

array string util

15/01 2013

v0.2.1

0.2.1.0 https://github.com/Pixel418/Ubiq

Functions for readable treatment of string, array & object

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

array string util

15/01 2013

v0.2.0

0.2.0.0 https://github.com/Pixel418/Ubiq

Functions for readable treatment of string, array & object

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

array string util

14/01 2013

v0.1.4

0.1.4.0 https://github.com/Pixel418/Ubiq

Functions for readable treatment of string, array & object

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

array string util

11/01 2013

v0.1.3

0.1.3.0 https://github.com/Pixel418/Ubiq

Functions for readable treatment of string, array & object

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

array string util

11/01 2013

v0.1.1

0.1.1.0 https://github.com/Pixel418/Ubiq

Functions for readable treatment of string, array & object

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

array string util

11/01 2013

v0.1.0

0.1.0.0 https://github.com/Pixel418/Ubiq

Functions for readable treatment of string, array & object

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

array string util