pyssphp/string

This package is abandoned and no longer maintained. No replacement package was suggested.

Python String Slice for PHP

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

This package is auto-updated.

Last update: 2020-02-09 19:01:05 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.