Directory Lister

Directory Lister is a PHP application that exposes the contents of your web-accessible folders for browsing and sharing. Featuring a zero configuration, drag-and-drop installation for quick and easy setup.

Directory Lister

PHP Slim Framework Vue.js Tailwind CSS

Twine

Twine is a simple string manipulation library with an expressive, fluent syntax.

Twine takes an object-oriented approach to making string manipulation and comparisons easy and readable. With Twine every string is an object. This gives you power and flexibility that native strings do not have in PHP.

Check out the slides from my azPHP presentation or the article on Laravel News.

Example:

use PHLAK\Twine;

$string = new Twine\Str('john pinkerton');

$string->uppercase(Twine\Config::WORDS); // 'John Pinkerton'
$string->substring(5, 4)->equals('pink'); // true
$string->words(); // ['john', 'pinkerton']
PHP Composer Packagist Git Version Control Travis CI

Splat

Glob-like file and pattern matching utility.

Example:

use PHLAK\Splat\Pattern;

Pattern::make('foo/bar.txt')->toRegex(); // '#^foo/bar\.txt$#'
Pattern::make('file.{yml,yaml}')->toRegex(); // '#^file\.(yml|yaml)$#'

Glob::match('*.txt', 'foo.txt'); // true
Glob::match('*.txt', 'foo.log'); // false
PHP Regular Expressions

vueColorClock

A color changing clock, the background color changes with every hour, minute and second.

vueColorClock

Vue.js Tailwind CSS Sass / SCSS Git Version Control Netlify

SemVer

A semantic versioning helper library for PHP.

Featured on Laravel News

Example:

use PHLAK\SemVer;

$version = new SemVer\Version('v1.2.3');

$version->incrementMinor(); // v1.2.3 -> v1.3.0
$version->incrementPatch(); // v1.3.0 -> v1.3.1
PHP Composer Packagist Semantic Versioning Git Version Control

Stash

Simple, fluent PHP caching library.

Example:

use PHLAK\Stash;

$stash = new Stash::memcached(function ($memcached) {
    $memcached->addServer('localhost', 11211);
});

$stash->put('foo', $data, 5); // Cache $data for 5 minutes
$stash->has('foo'); // True if 'foo' is in the cahce
$stash->get('foo'); // Retrievs the 'foo' from the cache
PHP Memcached Redis

PHX2600

Homepage for the PHX2600, the Phoenix, Arizona Network of Hackers.

phx2600.org

Vue.js Tailwind CSS Jigsaw Netlify

Config

PHP library for easy configuration management.

Example:

use PHLAK\Config\Config;

$config = new Config('path/to/config/databse.yaml');

$config->set('port', 3307); // Sets 'port' config item
$config->get('hostname'); // Returns 'localhost'
PHP JSON YAML TOML

Chronometer

Measure the passing of time.

Example:

use PHLAK\Chronometer\Timer;

Timer::start(); // 1562650807.427
Timer::addLap();
Timer::lastLap()->duration(); // 5.8519079685211
Timer::stop(); // 1562650817.0831
Timer::elapsed(); // 9.6561479568481
PHP Composer Packagist

Uber Gallery

An easy to use, simple to manage, web photo gallery written in PHP.

PHP
Software and web projects.