承接 binnyva/iframe 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

binnyva/iframe

Composer 安装命令:

composer require binnyva/iframe

包简介

iFrame is a PHP micro framework

README 文档

README

2.0.10

iFrame is a lightweight PHP framework.

<?php
require __DIR__.'/vendor/autoload.php';
$app = new iframe\App;

$message = "Hello World!";

$app->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 <app folder>templates\layout\page.php file(which provides the general layout)
  2. Include the view for this specific login file - which will be <app folder>templates\hello.php
  3. Include <app folder>\assets\css\hello.css
  4. Include <app folder>\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 to install iFrame

$ composer require binnyva/iframe

If you are starting a new project with iframe, its recommend 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...

统计信息

  • 总下载量: 65
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-03-07