Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imclint21/photon
Photon is a Lightweight PHP Framework.
https://github.com/imclint21/photon
framework lightweight lightweight-framework lightweight-php-framework mvc mvc-framework php php-framework
Last synced: 20 days ago
JSON representation
Photon is a Lightweight PHP Framework.
- Host: GitHub
- URL: https://github.com/imclint21/photon
- Owner: imclint21
- License: mit
- Created: 2020-01-11T20:11:23.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-12T21:33:12.000Z (almost 5 years ago)
- Last Synced: 2023-08-27T20:08:40.465Z (over 1 year ago)
- Topics: framework, lightweight, lightweight-framework, lightweight-php-framework, mvc, mvc-framework, php, php-framework
- Language: PHP
- Homepage: https://github.com/clintnetwork/photon
- Size: 73.2 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Photon PHP Framework
Photon is a Lightweight PHP MVC Framework 💡
How to Ignite?
---To use `Photon` you only need to add theses lines into your index.php folder and create some folders.
```php
require_once(__DIR__ . "/photon.php");
$photon = new Photon();
$photon->ignite();
```Really Simple to Use
---If you want to try `Photon` you can easily download this [example](https://github.com/clintnetwork/photon/tree/master/example).
```php
class Home
{
public function index()
{
return view();
}public function about()
{
Photon::$viewbag = "This is the about page.";
return view();
}/**
* @route /privacy-policy
*/
public function privacy()
{
return view();
}
}
```Credits
---Photon is powered by [Clint.Network](https://twitter.com/clint_network).