{"id":13810413,"url":"https://github.com/juliomatcom/one-php-microframework","last_synced_at":"2025-05-14T10:33:15.738Z","repository":{"id":27682130,"uuid":"31168412","full_name":"juliomatcom/one-php-microframework","owner":"juliomatcom","description":"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","archived":true,"fork":false,"pushed_at":"2018-11-07T16:47:56.000Z","size":111,"stargazers_count":94,"open_issues_count":4,"forks_count":25,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-05-10T05:02:54.241Z","etag":null,"topics":["micro-framework","php"],"latest_commit_sha":null,"homepage":"http://juliocesar.space/one-php-microframework/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/juliomatcom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-22T15:59:29.000Z","updated_at":"2025-01-29T19:32:01.000Z","dependencies_parsed_at":"2022-07-22T18:32:56.402Z","dependency_job_id":null,"html_url":"https://github.com/juliomatcom/one-php-microframework","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliomatcom%2Fone-php-microframework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliomatcom%2Fone-php-microframework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliomatcom%2Fone-php-microframework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliomatcom%2Fone-php-microframework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juliomatcom","download_url":"https://codeload.github.com/juliomatcom/one-php-microframework/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254121131,"owners_count":22018109,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["micro-framework","php"],"created_at":"2024-08-04T02:00:52.550Z","updated_at":"2025-05-14T10:33:10.728Z","avatar_url":"https://github.com/juliomatcom.png","language":"PHP","readme":"# One PHP MicroFramework\nAn 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.\n\n[![Build Status](https://travis-ci.org/juliomatcom/one-php-microframework.svg?branch=master)](https://travis-ci.org/juliomatcom/one-php-microframework)\n[![Latest Stable Version](https://poser.pugx.org/julces/oneframework/v/stable)](https://packagist.org/packages/julces/oneframework)\n[![Latest Unstable Version](https://poser.pugx.org/julces/oneframework/v/unstable)](https://packagist.org/packages/julces/oneframework)\n[![License](https://poser.pugx.org/julces/oneframework/license)](https://packagist.org/packages/julces/oneframework)\n\n### :loudspeaker: *I stopped developing new features for OnePHP. If you feel like you have the time, you are welcome to [contact me](https://twitter.com/juliomatcom) or [PR](https://github.com/juliomatcom/one-php-microframework/pulls) and keep this cool framework up to date.*\n---\n## Simplest usage:\n```php\n// index.php\nrequire_once('src/OnePHP/one_framework.php');\n$app = new \\OnePHP\\App();\n\n$app-\u003eget('/:name',function( $name ) use ( $app ){//Action\n  echo \"Hello $name\";\n});\n$app-\u003elisten();\n```\n\n### Install:\n1- With [**Composer**](https://getcomposer.org/ \"download Composer\") or download Master [**ZIP**](https://github.com/juliomatcom/one-php-microframework/archive/master.zip \"download One PHP Master version\"):\n```\ncomposer create-project julces/oneframework\n```   \n2- 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](docs/structure.md)  for more info.  \n3- Run **App-\u003elisten()** after adding some Actions  \n\n### Why use this tiny Microframework?\n**One PHP** is perfect for you if you need to quickly write **small** and **fast** Web 2.0 applications with:   \n1- **Restful** Routes   \n2- Easy and clean (GET, POST, PUT, DELETE...) **Requests** management   \n3- Restful **Response** with **HTTP Status Code** and custom **Headers**   \n4- **PHP** native **Views**   \n5- **No dependencies**, add extra libraries only when you need it.  \n#### Do not use One PHP if:\n1- You are building big full stack projects   \n2- You need big **built-in** libraries like Doctrine and others   \n\n\n\n\n### Basic Usage 2: Respond to all Requests (if no other match)\n```php\n$app-\u003erespond( function() use ( $app ){\n  return $app-\u003eResponseHTML('\u003cp\u003e This is a response with code 404. \u003c/p\u003e', 404);\n});\n```\n\n## Read the [Documentation](docs/contents.md \"Documentation\")\n\n### Contribute, it's easy!\nFound a **bug**, need **directions**\nor just want to say hi ?    \nLet me know, **Fork** the project, create an **issue** or **contact** me.   \n\nFollow [@juliomatcom](https://twitter.com/juliomatcom    \"News and updates\") to keep up to date\n","funding_links":[],"categories":["PHP"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliomatcom%2Fone-php-microframework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuliomatcom%2Fone-php-microframework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliomatcom%2Fone-php-microframework/lists"}