pyssphp / string
Python String Slice for PHP
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/pyssphp/string
Requires
- php: >=5.3.3
- hoa/string: master
This package is auto-updated.
Last update: 2020-02-09 19:01:05 UTC
README
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.