pyssphp/string

Python String Slice for PHP

dev-master 2013-02-22 22:21 UTC

README

Build Status

What is pyssphp?

pyssphp is a PHP library. It permits developers to use the Python string slice syntax.

Server Requirements

  • PHP version 5.3.3 or newer

Usage

<?php

$s = new \pyssphp\String('pyssphp');
echo $s[':4']; // prints 'pyss'
echo $s['::2']; // prints 'pspp'

Tests

To run the test suite, you need composer and PHPUnit.

$ cd path/to/pyssphp
$ composer.phar install --dev
$ phpunit

License

pyssphp is under the MIT license. Please, read LICENSE.