Download the PHP package phootwork/phootwork without Composer
On this page you can find all versions of the php package phootwork/phootwork. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phootwork/phootwork
More information about phootwork/phootwork
Files in phootwork/phootwork
Package phootwork
Short Description The phootwork library fills gaps in the php language and provides better solutions than the existing ones php offers.
License MIT
Informations about the package phootwork
Phootwork library
Phootwork is a collection of php libraries which fill gaps in the php language and provides consistent object oriented solutions where the language natively offers only functions.
The phootwork package includes:
- collection a library to model several flavours of collections
- file an object oriented library to manipulate filesystems elements (stream compatible)
- json a json library, with clean syntax and proper error handling
- lang a library to manipulate arrays and strings in an object oriented way
- tokenizer an easy to use tokenizer library for PHP code
- xml an object oriented xml utility library
Installation
We use composer as dependency manager and distribution system. To install the library run:
Each single package can be installed separately. I.e. if you want to include in your project the collection
library only:
Note: the single library packages does not ship with tests and --dev dependencies. If you want to run the test suite or contribute to the library, you have to install the whole
phootwork/phootwork
package.
A Little Taste
The following examples show what you can find in this library. You can discover much, much more by reading the documentation and the api.
A Little Taste of lang Library (phootwork\lang\Text
class);
A Little Taste of collection Library (phootwork\collection\Stack
class)
Documentation
The official documentation site: https://phootwork.github.io
Running Tests
In order to run the test suite, download the full library:
Then install the dependencies via composer:
and run:
Our test
script calls the vendor/bin/phpunit
command under the hood, so you can pass to it all the phpunit options,
via --
operator i.e.: composer test -- --stop-on-failure
.
Each library has its own test suite and you can run it separately. I.e. suppose you want to run the collection library test suite:
or alternatively:
Phootwork also provides a command to generate a code coverage report in html format, into the coverage/
directory:
Contact
Report issues at the github Issue Tracker.
Contributing
Every contribute is welcome, whether it is a simple typo or a new modern complicated feature. We are very grateful to all the people who will dedicate their precious time to this library!
You can find all information about it in the CONTRIBUTING.md document.
Changelog
Refer to Releases
All versions of phootwork with dependencies
ext-json Version *
ext-xml Version *
symfony/polyfill-mbstring Version ^1.20
symfony/polyfill-php81 Version ^1.22