2017 © Pedro PelĆ”ez
 

library gestalt

Gestalt is a simple, elegant PHP package for managing your framework's configuration values.

image

samrap/gestalt

Gestalt is a simple, elegant PHP package for managing your framework's configuration values.

  • Monday, November 21, 2016
  • by samrap
  • Repository
  • 3 Watchers
  • 14 Stars
  • 678 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 2 Forks
  • 2 Open issues
  • 9 Versions
  • 15 % Grown

The README.md

Gestalt

StyleCI Build Status Latest Stable Version Total Downloads Latest Unstable Version, (*1)

geĀ·stalt (n): Something that is made of many parts and yet is somehow more than or different from the combination of its parts; broadly : the general quality or character of something., (*2)

Gestalt is a simple and elegant PHP package for managing your framework's configuration values. It is lightweight, flexible, framework agnostic, and has no dependencies other than PHP itself., (*3)

Features

  • Lightweight: Gestalt is built to be lightweight. No dependencies, no bloat, just an object-oriented wrapper around your framework's configuration.
  • Powerful: Who said lightweight means powerless? Gestalt has a small footprint but packs a mean punch. Just take a look at its Custom Loaders and Observers and you'll see for yourself.
  • Flexible: Developers like to do things our way. Gestalt gives you the flexibility to integrate seamlessly with your application.
  • Expressive syntax: With its clean, collection-like syntax, code artisans will feel right at home. Messy developers will like it too!

Examples

The following are just a few of the features Gestalt has to offer. Visit the docs for more on installation, usage, and features., (*4)

Basic Usage (Learn More), (*5)

$config = new Configuration([
    'app' => [
        'debug' => true,
        'version' => '1.0',
    ],
]);

// Get values using dot notation or ArrayAccess.
$config->get('app.debug');
$config['app'];

// Add values using dot notation or ArrayAccess.
$config->add('app.locale', 'en');
$config['mail'] = ['driver' => 'MailMonkey'];

Custom Loading (Learn More), (*6)

$config = Configuration::load(new JsonFileLoader);

$config->get('app.debug');

Observers (Learn More), (*7)

$config = new Configuration($values);

$config->attach(new StatefulObserver);

// Notifies the StatefulObserver that the
// Configuration has been updated.
$config->set('app.debug', false);

Interested? Check out the docs to see all of the features in action!, (*8)

The Versions

21/11 2016

0.4.x-dev

0.4.9999999.9999999-dev

Gestalt is a simple, elegant PHP package for managing your framework's configuration values.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Sam Rapaport

php configuration boilerplate wrapper

06/10 2016

dev-master

9999999-dev

Gestalt is a simple, elegant PHP package for managing your framework's configuration values.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Sam Rapaport

php configuration boilerplate wrapper

06/10 2016

v0.3.1

0.3.1.0

Gestalt is a simple, elegant PHP package for managing your framework's configuration values.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Sam Rapaport

php configuration boilerplate wrapper

06/10 2016

dev-dev

dev-dev

Gestalt is a simple, elegant PHP package for managing your framework's configuration values.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Sam Rapaport

php configuration boilerplate wrapper

03/10 2016

v0.3.0

0.3.0.0

Gestalt is a simple, elegant PHP package for managing your framework's configuration values.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Sam Rapaport

php configuration boilerplate wrapper

23/09 2016

v0.2.0

0.2.0.0

Gestalt is a simple, elegant PHP package for managing your framework's configuration values.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Sam Rapaport

php configuration boilerplate wrapper

09/09 2016

v0.1.2

0.1.2.0

Gestalt is a simple, elegant PHP package for managing your framework's configuration values.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Sam Rapaport

php configuration boilerplate wrapper

05/09 2016

v0.1.1

0.1.1.0

Gestalt is a simple, elegant PHP package for managing your framework's configuration values.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Sam Rapaport

php configuration boilerplate wrapper

03/09 2016

v0.1.0

0.1.0.0

A clean, expressive way to handle configuration for your PHP app.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Sam Rapaport

php configuration boilerplate wrapper