2017 © Pedro Peláez
 

library raw-application

RawApplication is a core application class that is a central point for RawPHP framework and other applications.

image

rawphp/raw-application

RawApplication is a core application class that is a central point for RawPHP framework and other applications.

  • Monday, December 29, 2014
  • by rawphp
  • Repository
  • 1 Watchers
  • 0 Stars
  • 197 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

RawApplication - A Simple App Class for PHP Applications

Build Status Coverage Status, (*1)

Latest Stable Version Total Downloads Latest Unstable Version License, (*2)

Package Features

  • A central class for an application
  • Provides access to the request, session, database, router, etc.

Installation

Composer

RawApplication is available via Composer/Packagist., (*3)

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

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

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

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

Tarball

Alternatively, just copy the contents of the RawApplication 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., (*6)

Basic Usage

<?php

use RawPHP\RawApplication\Application;

// create your application class by extending the base Application class
class CoolApp extends Application
{

}

// declare configuration for the app (see example in package)
$config = array(
    'application_name' => 'Cool App',
    ...
);

$app = new CoolApp( );

// initialise the app
$app->init( $config );

// run the app
$app->run( );

License

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

Contributing

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

Changelog

22-09-2014

  • Updated to PHP 5.3.

20-09-2014

  • Replaced php array configuration with yaml

19-09-2014

  • Updated application configuration
  • Added debug flag for application components in config.

18-09-2014

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

17-09-2014

  • Reduced component dependency to just the essentials in composer.

14-09-2014

  • Initial Code Commit

The Versions