The RDS Framework is a web development framework written in PHP, and the framework is based on the MVC model.
The structure of the framework is ideal for web application and enables you to easy share your work with other users, ill explain that a little further.
Easily share your work
When you work with the RDS Framework you are making components and modules. Every component and module has its own MVC structure inside it. When you are done writing your component (blog component for example), you can easily share it with other users.
There are also some extensions (components, modules, etc) available for rapid web development.
Structured for web applications
The framework is structured for web applications. For example the media folder (images, css, js) are all in one convenient folder of the system, and separate from all the template files. This mean you can eaily move all your files to a CDN when your website grows.
Another point is the multi language support. The system allows for easy multi language support with different template files, or just with different .ini files.
Everything is build for a good SEO strategy (pretty urls etc).
Normal HTML, PHP and SQL Queries
When you are working with the framework you are just going to use normal PHP and SQL queries in your controllers and models. In the views you are only going to write HTML.
This means no special way of making this work. The framework is structured in such a matter that you only have to know your basic languages. There is no special format needed to do all your work.
This makes it a powerful framework because you are dealing with raw code!
For a better understanding take a look at the video tutorial and read the documentation.
website: http://www.rdsframework.com
videos: http://www.youtube.com/rdsframework
PHP developers
For those of you who want to take a look at the most recent code and help with the development take a look at our Git repository.
Git: http://www.gitorious.com/rdsframework
[ www.phpburn.com ]
The PhpBURN is a complete PHP framework and is compose by three main modules ( but not the only ones because everyone can develop your own modules and integrate it to the tool ). The main principle in this tool is the MVC pattern.
ORM ( Model or M ): Without doubt the most powerful part of this framework is the ORM, responsable for the persistence and mapping between the Application and the DBMS ( Data Base Management System or simply Data Base ). It supports multiples databases, multiples drivers in just one application, making the development extremely Easy, Fast, Powerful and very Fun.
In order to obtain more information about the ORM see the documentation.
Controllers ( Controller or C ): The controllers in PhpBURN want to make more easy the developer but also organize and agile the development, they are not only for this but also as a guide line for the developer follow the corrects Design Patterns.
The learning curve for this system part utilization is almost zero because it works basicaly as a way to encapsulate and organize the code operations following the MVC patterns.
For more informations about Controllers see the documentation.
Views ( View or V ): The views system on PhpBURN is very cool, by default it comes with a support similar to the used by many frameworks and professionals but also supports the adaptation and integration of own systems or others frameworks in a simple way.
The most intersting part is that the integration are made in a low level that means there is no changes in the sintaxe, the views change is made without need to change anything in the controllers.
For more Information about Views see the documentation.
External Libs: The PhpBURN has a easy way of implementation of external libraries without the need of a learning curve or a huge amount of configurations for work, you only need to add the lib to the PhpBURN’s folders at phpburn/app/libs/Tools/Extras and just go using with a simple PhpBURN::load(“Tools.Extras.YOUEXTERNALLIBHERE”);
Ex: SimplePie, TCPDF, etc.
Vork is an open-source PHP framework designed for rapid development of performance-oriented scalable applications.
The mission of Vork is to provide an MVC architecture and full-featured toolkit in a gimmick-free no-frills approach without adding overhead, creating slow & unscalable abstraction layers or re-inventing native PHP functionality.
Yii PHP Framework实用入门教程 by 周公的专栏
说明:因为最近工作工作关系,需要开发一个在Linux下运行的Web Application,需要对现在比较流行的一些PHP框架做一个了解和评估,下面的这篇文章是笔者最近学习一个比较新的PHP Framework的一点经历和操作步骤,因为官方的手册写得比较晦涩(特别是中文的),曾经尝试遍读它那个手册再动手,读了一大半发现仍无法理解,于是干脆先下手为强了,因而也就有了下面的文章。
介绍
Yii 是一个基于组件、纯OOP的、用于开发大型 Web 应用的高性能 PHP 框架。它将 Web 编程中的可重用性发挥到极致,能够显著加速开发进程。Yii适合大流量的应用,如门户、BBS、CMS及B2B系统等,功能丰富,性能优异,不过它的中文文档还不完善,并且有些命令行的操作是针对非Windows用户的,不易理解,所以制作了这篇文档。
下载地址:http://www.yiiframework.com/download/
中文文档地址:http://www.yiiframework.com/doc/guide/zh_cn
配置
下面针对本人的机器相关软件环境及路径做下说明:
Apache2.2.4+PHP5.2.5+MySQL5.1.39
在这里需要说明的是需要在设置Windows环境变量,在Path中添加PHP运行环境所在的目录(如本人在原有配置后加上”;C:\PHP”),因为使用Yii时需要PHP的运行环境。此外,在PHP版本选择时建议不要选择比较高的版本,本人是从PHP5.3.0->PHP5.2.11->PHP5.2.5一路降下来才运行成功的,建议尽量暂时不要使用PHP5.3.0、PHP5.2.11,本人在使用这两个版本过程中经常遇到一个ext目录下的dll文件不能加载的情况,当然你确认自己对PHP的配置相当熟悉的话例外。
因为在Yii中需要开启pdo和pdo_mysql,所以请确保在运行环境所使用的php.ini中取消了extension=php_mysql.dll、extension=php_pdo.dll、extension=php_pdo_mysql.dll的注释。
Apache的网站根路径为D:\wwwroot,在这个根路径下创建一个名为YiiDemo的文件夹,将从网上下载到的Yii压缩包解压之后,拷贝进D:\wwwroot\YiiDemo文件夹,文件结构如下:
注:上图中demos、framework、requirements是Yii压缩包中的文件夹,其它文件和文件夹是本人使用Eclipse时创建的。此外,在D:\wwwroot\YiiDemo\framework文件夹下有一个yiic.bat文件,这个文件可以帮助我们快速生成网站架构和MVC相关的文件。
另外,在本实例中MySQL和PHP都是用了utf8编码,不建议使用gb2312编码,能显示的中文字符太少,并且对其它东亚语系不支持,甚至连生僻点的繁体中文都不能显示,而utf8可以解决这个问题。
创建网站初始结构
启动Windows命令行程序(在开始菜单上找到“运行”,然后输入“cmd”并回车),可以看到如下命令行窗口:
在命令行方式下切换到Yii的framework目录下用以执行yiic命令(实际执行的是yiic.bat),如下:
看到如上图所示的信息之后,就可以使用yiic来创建网站结构了,在本例中我们在D:\wwwroot\YiiDemo\framework(注意Apache中网站根路径为D:\wwwroot)下创建网站,网站名字为study,先在D:\wwwroot\YiiDemo\framework下手动创建study这个文件夹,然后使用如下命令创建网站:yiic webapp 网站路径,如下图:
在输入创建网站的命令之后就会看到如上图所示的提示,键入”y”之后就会在D:\wwwroot\YiiDemo\study目录创建网站的框架结构,如下图所示:
按照本人机器配置,现在就可以看到Yii框架的雏形显示了,网址是:http://localhost/YiiDemo/study/index.php。
生成MVC文件
按照默认配置还不能使用数据库,要想获取与数据库的练习,需要更改配置,打开D:\wwwroot\YiiDemo\study\protected\config文件夹下的main.php文件,更改components中的配置即可,’db’这一参数被注释掉了,将’db’参数设置如下:
‘db’=>array(
‘connectionString’=>’mysql:host=localhost;dbname=study’,
‘username’=>’root’,
‘password’=>’jeri’,
),
保存之后即可连接MySQL数据库了,实际使用时要根据自己的实际情况配置。
在此将继续使用yiic这个命令行工具,通过cd切换工作路径到D:\wwwroot\YiiDemo\study这个文件夹,然后在命令行中可以创建model和view文件。如下:
需要注意的是,如上图所示,因为yiic.bat文件在D:\wwwroot\YiiDemo\framework文件夹下,而当前命令行的工作路径是D:\wwwroot\YiiDemo\study,所以在运行yiic时建议使用全路径。
使用yiic shell命令就可以进入shell命令行,在命令行看到的输入提示变为“>>”,键入model 表名就会创建对应表的model文件,上图下面就是使用“model user”成功之后就可以看到上图对应的情况。
还可以使用crud (crud分别是create/read/update/delete的缩写,表示常用的增删改查数据库操作)表名创建对应的coltroller和view文件,如下图所示:
比如针对表user、userlist等使用model和crud命令之后,我们就可以在浏览器中查看这些文件了,如查看userlist表中的数据,可以在浏览器中输入http://localhost/YiiDemo/study/index.php?r=userlist,看到如下所示的图:
可以看到尽管MySQL和PHP都是用了utf8编码,但是数据库中的RealName字段因为是中文数据导致不能正常显示,出现这种情况是因为采用了默认的字符集连接MySQL,在PHP中直接连接MySQL时,如果使用了utf8编码,我们会在PHP代码中做如下设置:mysql_query(”set names ‘utf8′”);但是在Yii中没有提供这样的机会,我们只需要更改D:\wwwroot\YiiDemo\framework\db文件夹下的CDbConnection.php文件中的
public $charset;
改为public $charset=’utf8′;就能正常显示了,如下图所示:
好了,至此没有写一行代码,但是已经完成了一个网站的大体框架,并且能初步实现增删改查功能了。
Hello, I want to introduce a new lightweight developer-centric PHP framework.
Full details and download is available at http://www.celeroo.com/frame/frame.html
Here is more about the features:
PHP4: YES, but will be dropped in the next update PHP5: YES MVC: YES Multiple DB’s: YES ORM: Open to integrate an ORM DB Objects: YES Templates: NO Caching: NO Validation: NO Ajax: Open to integrate with Protyotype, Jquery or any other (i.e. you can just use javascript) Auth Module: NO Modules: YES
Celeroo focus on rapid development and aims to remain simple and minimalistic. We will be adding new features and modules upon feedback, but the main criteria is easiness and improvement of development speed.