PHPackages                             tagadvance/gilligan - 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. tagadvance/gilligan

ActiveProject

tagadvance/gilligan
===================

...

048PHP

Since Dec 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/tagadvance/Gilligan)[ Packagist](https://packagist.org/packages/tagadvance/gilligan)[ RSS](/packages/tagadvance-gilligan/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Build Status](https://camo.githubusercontent.com/457412019ff78921e68a290bbb8cba8a8d0c96e6354e33430865ba6890e91bbb/68747470733a2f2f7472617669732d63692e6f72672f746167616476616e63652f47696c6c6967616e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/tagadvance/Gilligan)

Gilligan
========

[](#gilligan)

Gilligan is a collection of PHP utilities I have created or gathered over the course of my career.

Some of these components are or were "pet projects" that I worked on simply because I thought they would be fun to implement.

The design of some of these tools was heavily influenced by libraries like [Apache Commons](https://commons.apache.org/) and [Guava](https://github.com/google/guava).

Download / Install
------------------

[](#download--install)

The easiest way to install Gilligan is via Composer:

```
composer require "tagadvance/gilligan:dev-master"
```

```
{
    "require": {
        "tagadvance/gilligan": "dev-master"
    }
}
```

Highlights
----------

[](#highlights)

Standard Print Streams, e.g.

```
Standard::output()->printLine('foo');
// prints 'foo'
```

Java-like IO Streams, e.g.

```
$fileName = 'test.php';
$file = new File( $fileName );
$stream = new FileInputStream( $file );
try {
	$bytes = $stream->read($length = 5);
	Standard::output()->printLine($bytes);
} finally {
	$stream->close();
}
// prints '
