https://github.com/alexvcasillas/eco
Eco - A PHP Framework
https://github.com/alexvcasillas/eco
framework php
Last synced: 8 months ago
JSON representation
Eco - A PHP Framework
- Host: GitHub
- URL: https://github.com/alexvcasillas/eco
- Owner: alexvcasillas
- License: mit
- Created: 2016-01-05T07:37:45.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-07T09:55:38.000Z (over 10 years ago)
- Last Synced: 2025-03-28T19:35:55.715Z (about 1 year ago)
- Topics: framework, php
- Language: PHP
- Homepage: http://alexvcasillas.github.io/Eco/
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

## Eco - A PHP Framework
Eco is a light, ready to use, [PHP](https://php.net) Framework. It has the core things you'll need to start developing your *Server Side Web App*.
With a low need of configuration is close to a *just upload and develop* framework.
***
## Requirements
What are the requirements of Eco? The requirements of this PHP Framework are really simple:
* PHP Versión: 5.3+.
* Apache's Mod_Rewrite module activated.
***
## Configuration
Eco is configure-friendly so there's just a few things you need to change to get ready and put your hands on developing your app.
### Configuring the App Routes
To start configuring your own *App Routes* you just need to access the following library: `lib.Router.php` and in the *Method* called `AppRoutes()` you'll find the following `Array`:
$this->ColeccionRutas = [
'index' => [ 'argumentos' => [ 'titulo' => 'EcoFramework DashBoard' ] ],
];
Let's say you want to create a route for a view that will be used for your users profile. We can handle it this way:
$this->ColeccionRutas = [
'index' => [ 'argumentos' => [ 'titulo' => 'EcoFramework DashBoard' ] ],
'user' => [ 'argumentos' => [ 'titulo' => 'User Profile' ] ]
];
And that's all folks, your route is now ready to be used but there's a last thing to prepare because the route is defined but... Which view will it take? At this moment: none. We need to head to `Views` folder and create a *View* called `view.user.php` and fill it with your `HTML` and `PHP`.