Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nadar/ifw
Project for testing purposes
https://github.com/nadar/ifw
Last synced: 29 days ago
JSON representation
Project for testing purposes
- Host: GitHub
- URL: https://github.com/nadar/ifw
- Owner: nadar
- Created: 2015-02-19T23:49:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-10T16:53:18.000Z (over 9 years ago)
- Last Synced: 2024-05-02T01:07:31.020Z (7 months ago)
- Language: PHP
- Homepage:
- Size: 340 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
IFW
====
Project for testing purposes, strongly inspired by the Yii2 framework!Features
--------Those features are already integrated:
- ActiveRecord (basic integration)
- Url Routing (parse rules, url creation)
- Behaviors
- Session Component
- Request Component
- Response Component
- Database Component
- Action Classes
- Terminal Commands (clis)
- Assets (only basics js and css files, copy images to cache asset folder)Todo
----- AR delete
- AR events (atache behavior to test addError() method)
- Database Migrations
- Basic Rest implementation
- User Auth implementation ($app->user)
- Admin Controllers (how to access?)
- Rest Controllers (how to access?)
- Move DI container to ifw static (re-use object on request ... user components?)INSTALLATION
============Project directory structur:
```
├── modules
│ └──
│ ├── actions
│ ├── controllers
│ └── models
├── public_html
├── vendor
└── views
├── layouts
└──
└──
```add composer.json file inside the root folder of your project with the content:
````json
{
"require" : {
"nadar/ifw" : "*"
}
}
```run the composer installation
```
composer install --prefer-dist
```create index.php file inside the public_html folder with following example content:
```php
require_once '../vendor/autoload.php';$config = new \ifw\Config(dirname(__DIR__), 'test');
$config->module('test', '\\app\\modules\\test\\Module');
$config->component('db', ['dsn' => 'mysql:host=localhost;dbname=DATABASE', 'user' => 'USERNAME', 'password' => 'PASSWORD']);ifw::init($config->get());
echo ifw::$app->run();
```