PHPackages                             phootwork/phootwork - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Queues &amp; Workers](/categories/queues)
4. /
5. phootwork/phootwork

ActiveLibrary[Queues &amp; Workers](/categories/queues)

phootwork/phootwork
===================

The phootwork library fills gaps in the php language and provides better solutions than the existing ones php offers.

v3.2.3(1y ago)7244[6 issues](https://github.com/phootwork/phootwork/issues)[2 PRs](https://github.com/phootwork/phootwork/pulls)MITPHPPHP &gt;=8.0CI failing

Since Aug 4Pushed 6mo ago4 watchersCompare

[ Source](https://github.com/phootwork/phootwork)[ Packagist](https://packagist.org/packages/phootwork/phootwork)[ RSS](/packages/phootwork-phootwork/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (6)Versions (18)Used By (0)

Phootwork library
=================

[](#phootwork-library)

[![Tests](https://github.com/phootwork/phootwork/workflows/Tests/badge.svg)](https://github.com/phootwork/phootwork/workflows/Tests/badge.svg)[![Coverage report](https://github.com/phootwork/phootwork/workflows/Coverage/badge.svg)](https://github.com/phootwork/phootwork/workflows/Coverage/badge.svg)[![Build Api Documentation](https://github.com/phootwork/phootwork/workflows/Build%20Api%20Documentation/badge.svg)](https://github.com/phootwork/phootwork/workflows/Build%20Api%20Documentation/badge.svg)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/69bd7e143cbdfb19d74ce75708a9f883ef5e8c3e12e93af074e908c564d06c52/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70686f6f74776f726b2f70686f6f74776f726b2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/phootwork/phootwork/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/826ef921280a14b18e896b455eda961bf8c53758c493844143b31e66791a06d5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70686f6f74776f726b2f70686f6f74776f726b2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/phootwork/phootwork/?branch=master)[![Maintainability](https://camo.githubusercontent.com/d39d8b29aa646d88d57fc53a6467f2ac1de49604c371956ae12fd3aa7136eab6/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f61383733636332353037373336323161613734622f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/phootwork/phootwork/maintainability)[![Test Coverage](https://camo.githubusercontent.com/76c87592d83e56765c7375bdf540611134b75d5cfb59e1dbbb6efb672d1fc966/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f61383733636332353037373336323161613734622f746573745f636f766572616765)](https://codeclimate.com/github/phootwork/phootwork/test_coverage)[![License](https://camo.githubusercontent.com/3cd3be84140fd8ab52383a1c7c6ffdfe16fd7415793ae53ab09cb03a6b30f408/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f70686f6f74776f726b2f70686f6f74776f726b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phootwork/phootwork)

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](https://github.com/phootwork/collection) a library to model several flavours of collections
- [file](https://github.com/phootwork/file) an object oriented library to manipulate filesystems elements (*stream compatible*)
- [json](https://github.com/phootwork/json) a json library, with clean syntax and proper error handling
- [lang](https://github.com/phootwork/lang) a library to manipulate arrays and strings in an object oriented way
- [tokenizer](https://github.com/phootwork/tokenizer) an easy to use tokenizer library for PHP code
- [xml](https://github.com/phootwork/xml) an object oriented xml utility library

Installation
------------

[](#installation)

We use [composer](https://getcomposer.org) as dependency manager and distribution system. To install the library run:

```
composer require phootwork/phootwork
```

Each single package can be installed separately. I.e. if you want to include in your project the `collection` library only:

```
composer require phootwork/collection
```

> **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
--------------

[](#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-lang-library-phootworklangtext-class)

```
