Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/binnyva/iframe
iFrame is a lightweight PHP framework - developed for personal use and distributed under the BSD License.
https://github.com/binnyva/iframe
composer-package framework lightweight mvc php
Last synced: about 2 months ago
JSON representation
iFrame is a lightweight PHP framework - developed for personal use and distributed under the BSD License.
- Host: GitHub
- URL: https://github.com/binnyva/iframe
- Owner: binnyva
- Created: 2013-07-27T07:19:07.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2022-08-06T12:56:48.000Z (over 2 years ago)
- Last Synced: 2024-04-14T07:35:25.518Z (10 months ago)
- Topics: composer-package, framework, lightweight, mvc, php
- Language: PHP
- Homepage:
- Size: 1.7 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# iFrame
## 2.0.9iFrame is a lightweight PHP framework.
```
render();
```## The Basics
iFrame is an MVC framework - with a twist. The controller is the file that is called. To understand this better, lets go thru the above code. Its called from this URL - `example.com/hello.php`
In this case, `hello.php` is the controller. The `$app->render()` will do these things...
1. Include the `templates\layout\page.php` file(which provides the general layout)
2. Include the view for this specific login file - which will be `templates\hello.php`
3. Include `\assets\css\hello.css`
4. Include `\assets\js\hello.js`
5. Place the view output within the general layout.The system will guess the file path of the template file based on controller file path. You can change the template file path if you wish.
## Installation
Use [composer](https://getcomposer.org/doc/00-intro.md) to install iFrame
```
$ composer require binnyva/iframe
```If you are starting a new project with iframe, its recommened to install the skeleton project...
```
$ composer create-project binnyva/iframe-skeleton [my-app-name]
```This will automatically install iframe and setup the required folder structure.
## Warning!
Don't use this framework unless you know what you are doing. It has been developed with a few specific use cases in mind. There are better frameworks around - please use one of them...
- [Laravel](https://laravel.com/)
- [Symphony](https://symfony.com/)
- [Slim](https://slimframework.com)