2017 © Pedro Peláez
 

library oneframework

One PHP Restful Microframework

image

julces/oneframework

One PHP Restful Microframework

  • Wednesday, August 23, 2017
  • by juliomatcom
  • Repository
  • 19 Watchers
  • 84 Stars
  • 216 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 18 Forks
  • 4 Open issues
  • 24 Versions
  • 0 % Grown

The README.md

One PHP MicroFramework

An extremely light-weight and small Restful Micro-Framework MVC for Web 2.0 that doesn't get in your way, based on Symfony and ExpressJS. No Config., (*1)

Build Status Latest Stable Version Latest Unstable Version License, (*2)

### :loudspeaker: I stopped developing new features for OnePHP. If you feel like you have the time, you are welcome to contact me or PR and keep this cool framework up to date.

Simplest usage:

// index.php
require_once('src/OnePHP/one_framework.php');
$app = new \OnePHP\App();

$app->get('/:name',function( $name ) use ( $app ){//Action
  echo "Hello $name";
});
$app->listen();

Install:

1- With Composer or download Master ZIP:, (*3)

composer create-project julces/oneframework

2- Include one_framework.php in your project and copy the .htaccess file in the Root Folder to use the index.php as your front controller. See file structure here for more info.
3- Run App->listen() after adding some Actions, (*4)

Why use this tiny Microframework?

One PHP is perfect for you if you need to quickly write small and fast Web 2.0 applications with:
1- Restful Routes
2- Easy and clean (GET, POST, PUT, DELETE...) Requests management
3- Restful Response with HTTP Status Code and custom Headers
4- PHP native Views
5- No dependencies, add extra libraries only when you need it., (*5)

Do not use One PHP if:

1- You are building big full stack projects
2- You need big built-in libraries like Doctrine and others, (*6)

Basic Usage 2: Respond to all Requests (if no other match)

$app->respond( function() use ( $app ){
  return $app->ResponseHTML('<p> This is a response with code 404. </p>', 404);
});

Read the Documentation

Contribute, it's easy!

Found a bug, need directions or just want to say hi ?
Let me know, Fork the project, create an issue or contact me., (*7)

Follow @juliomatcom to keep up to date, (*8)

The Versions

23/08 2017

dev-master

9999999-dev https://github.com/juliomatcom/one-php-microframework

One PHP Restful Microframework

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

micro php restful microframework one minimalist

08/03 2016

0.6.0

0.6.0.0 https://github.com/juliomatcom/one-php-microframework

One PHP Restful Microframework

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

micro php restful microframework one minimalist

08/03 2016

dev-dev

dev-dev https://github.com/juliomatcom/one-php-microframework

One PHP Restful Microframework

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

micro php restful microframework one minimalist

02/06 2015

0.5.4b

0.5.4.0-beta https://github.com/juliomatcom/one-php-microframework

One PHP Restful Microframework

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

micro php restful microframework one minimalist

02/06 2015

0.5.4

0.5.4.0 https://github.com/juliomatcom/one-php-microframework

One PHP Restful Microframework

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

micro php restful microframework one minimalist

02/06 2015

0.5.3

0.5.3.0 https://github.com/juliomatcom/one-php-microframework

One PHP Restful Microframework

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

micro php restful microframework one minimalist

31/05 2015

0.5.0

0.5.0.0 https://github.com/juliomatcom/one-php-microframework

One PHP Restful Microframework

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

micro php restful microframework one minimalist

28/05 2015

0.4.1

0.4.1.0 https://github.com/juliomatcom/one-php-microframework

One PHP Restful Microframework

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

micro php restful microframework one minimalist

27/05 2015

0.4.0

0.4.0.0 https://github.com/juliomatcom/one-php-microframework

One PHP Restful Microframework

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

micro php restful microframework one minimalist

07/05 2015

0.3.2

0.3.2.0 https://github.com/juliomatcom/one-php-microframework

One - PHP Minimalist MVC Framework

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

micro framework php one minimalist

16/04 2015

0.2.3

0.2.3.0 https://github.com/juliomatcom/one-php-microframework

One - PHP Minimalist MVC Framework

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

micro framework php one minimalist

08/04 2015

0.2.2

0.2.2.0 https://github.com/juliomatcom/one-php-microframework

One - PHP Minimalist MVC Framework

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

micro framework php one minimalist

02/04 2015

0.2.1b

0.2.1.0-beta https://github.com/juliomatcom/one-php-framework

One - PHP Minimalist MVC Framework

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

micro framework php one minimalist

02/04 2015

0.2.1

0.2.1.0 https://github.com/juliomatcom/one-php-framework

One - PHP Minimalist MVC Framework

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

micro framework php one minimalist

02/04 2015

0.2.0

0.2.0.0 https://github.com/juliomatcom/one-php-framework

One - PHP Minimalist MVC Framework

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

micro framework php one minimalist

31/03 2015

0.1.6

0.1.6.0 https://github.com/juliomatcom/one-php-framework

One - PHP Minimalist MVC Framework

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

micro framework php one minimalist

31/03 2015

0.1.5

0.1.5.0 https://github.com/juliomatcom/one-php-framework

One - PHP Minimalist MVC Framework

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

micro framework php one minimalist

10/03 2015

0.1.2

0.1.2.0 https://github.com/juliomatcom/one-php-framework

One - PHP Minimalist MVC Framework

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

micro framework php one minimalist

10/03 2015

0.1.1

0.1.1.0 https://github.com/juliomatcom/one-php-framework

One - PHP Minimalist MVC Framework

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

micro framework php one minimalist

06/03 2015

0.1.0

0.1.0.0 https://github.com/juliomatcom/one-php-framework

One - PHP Minimalist MVC Framework

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

micro framework php one minimalist

04/03 2015

0.0.4

0.0.4.0 https://github.com/juliomatcom/one-file-php-framework

One - PHP Minimalist MVC Framework

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

micro framework php one minimalist

02/03 2015

0.0.3

0.0.3.0 https://github.com/juliomatcom/one-file-php-framework

One - PHP Minimalist MVC Framework

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

micro framework php one minimalist

01/03 2015

0.0.2

0.0.2.0 https://github.com/juliomatcom/one-file-php-framework

One - PHP Minimalist MVC Framework

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

micro framework php one minimalist

01/03 2015

0.0.1

0.0.1.0 https://github.com/juliomatcom/one-file-php-framework

One - PHP Minimalist MVC Framework

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

micro framework php one minimalist