2017 © Pedro Peláez
 

library raw-options

RawOptions is a small package that adds options to a PHP application and is used by RawPHP framework and other applications.

image

rawphp/raw-options

RawOptions is a small package that adds options to a PHP application and is used by RawPHP framework and other applications.

  • Tuesday, September 23, 2014
  • by rawphp
  • Repository
  • 1 Watchers
  • 0 Stars
  • 170 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

RawOptions - A Simple Session Wrapper Class for PHP Applications

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

Package Features

  • Manage application options in the database through key->value pairs.
  • Provides a ready-to-go database table migration and an option interface.

Installation

Composer

RawOptions is available via Composer/Packagist., (*2)

Add "rawphp/raw-options": "0.*@dev" to the require block in your composer.json and then run composer install., (*3)

{
        "require": {
            "rawphp/raw-options": "0.*@dev"
        }
}

You can also simply run the following from the command line:, (*4)

composer require rawphp/raw-options "0.*@dev"

Tarball

Alternatively, just copy the contents of the RawOptions folder into somewhere that's in your PHP include_path setting. If you don't speak git or just want a tarball, click the 'zip' button at the top of the page in GitHub., (*5)

Basic Usage

<?php

use RawPHP\RawOptions\Options;

// IDatabase instance
$database = new Database( );
$database->init( $config );

// instantiate a new instance of options service
$options = new Options( $database );

// add a new option
$options->addOption( $key, $value );

// update an existing option
$options->updateOption( $key, $value );

// get an option
$options->getOption( $key );

// delete an option
$options->deleteOption( $key );

License

This package is licensed under the MIT. Read LICENSE for information on the software availability and distribution., (*6)

Contributing

Please submit bug reports, suggestions and pull requests to the GitHub issue tracker., (*7)

Changelog

22-09-2014

  • Updated to PHP 5.3.

20-09-2014

  • Replaced php array configuration with yaml

18-09-2014

  • Updated to work with the latest rawphp/rawbase package.

17-09-2014

  • Initial Code Commit

The Versions

23/09 2014

dev-master

9999999-dev http://rawphp.org

RawOptions is a small package that adds options to a PHP application and is used by RawPHP framework and other applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tom Kaczocha

options