pyssphp is a PHP library. It permits developers to use the Python string slice syntax.
- PHP version 5.3.3 or newer
<?php
$s = new \pyssphp\String('pyssphp');
echo $s[':4']; // prints 'pyss'
echo $s['::2']; // prints 'pspp'
To run the test suite, you need composer and PHPUnit.
$ cd path/to/pyssphp
$ composer.phar install --dev
$ phpunit
pyssphp is under the MIT license. Please, read LICENSE.