2017 © Pedro PelĂĄez
 

library upforphp

Upfor PHP Framework

image

upfor/upforphp

Upfor PHP Framework

  • Wednesday, June 15, 2016
  • by shockerli
  • Repository
  • 4 Watchers
  • 2 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Upfor Framework

Upfor is a simple, extensible framework for PHP. Upfor can help you quickly build simple yet powerful web applications., (*1)

Installation

1. Download the files

If you’re using Composer, you can run the following command:, (*2)

composer require upfor/upforphp

OR you can download them directly and extract them to your web directory., (*3)

2. Configure webserver

PHP built-in server

php -S 0.0.0.0:8080 -t ./public

Apache configuration

Make sure your Apache virtual host is configured with the AllowOverride option. Ensure your .htaccess file and contain this code:, (*4)

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]

Nginx configuration

For Nginx, add the following to your server declaration:, (*5)

location / {
    try_files $uri $uri/ /index.php$is_args$args;
}

3. Create index.php file

First, include the autoloader and register a namespace., (*6)

define("ROOT", dirname(realpath(__DIR__)));
require ROOT . '/src/Autoloader.php';
$autoloader = new \Upfor\Autoloader();
$autoloader->addNamespace('Upfor\\', ROOT . '/src/');
$autoloader->register();

If you’re using Composer, run the autoloader instead., (*7)

require 'vendor/autoload.php';

Create and configure app., (*8)

$app = new \Upfor\App();

Define the application routes., (*9)

$route = $app->get('/', function () {
    echo 'Hello World!';
});

Finaly, run the application., (*10)

$app->run();

If you are not using the Composer, you must manually require the helpers: require ROOT . '/src/Helper/helpers.php';, (*11)

Requirements

Upfor requires PHP 5.4.0 or greater., (*12)

License

Upfor Framework is released under the MIT license., (*13)

The Versions

15/06 2016

dev-master

9999999-dev https://github.com/upfor/upforphp

Upfor PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework php upfor

13/06 2016

0.0.7

0.0.7.0 https://github.com/upfor/upforphp

Upfor PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework php upfor

12/06 2016

0.0.6

0.0.6.0 https://github.com/upfor/upforphp

Upfor PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework php upfor

12/06 2016

0.0.5

0.0.5.0 https://github.com/upfor/upforphp

Upfor PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework php upfor

12/06 2016

0.0.4

0.0.4.0 https://github.com/upfor/upforphp

Upfor PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework php upfor

03/06 2016

0.0.3

0.0.3.0 https://github.com/upfor/upforphp

Upfor PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api framework php upfor

13/05 2016

0.0.2

0.0.2.0 https://github.com/upfor/upforphp

Upfor PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.3.9

 

api framework

03/05 2016

0.0.1

0.0.1.0 https://github.com/upfor/upforphp

Upfor PHP Framework

  Sources   Download

MIT

The Requires

  • php >=5.3.9

 

api framework