转:分享13款PHP开发框架
文章来自于:http://mashable.com/2014/04/04/php-frameworks-build-applications/
Building software applications can be a complex, time consuming process, however utilizing a framework can help you develop projects faster (by reusing generic components and modules), and work better (building on one unified structural foundation). Using a framework also facilitates scalability and long-term maintenance by complying with development standards, keeping your code organized and allowing your application to evolve and grow over time.
By removing the time and effort required to build generic components, you can dedicate more time to specific tasks and functionality, and focus on sustainable, high-quality code. We've identified 13 of the best PHP frameworks to help you build interoperable, agile applications.
1. Laravel
Laravel is a PHP web application framework with expressive, elegant syntax, aiming to take the pain out of web development by easing common tasks, such as authentication, routing, sessions and caching. It provides, accessible, powerful tools needed to build, large robust applications, with an inversion control container, expressive migration system, and tightly integrated unit testing support. Laravel can be used for huge enterprise level applications, or simple JSON APIs, meaning it's perfectly suited to all types and sizes of projects. It's built on top of several Symfony components, providing a solid foundation of well-tested, reliable code. With Composer you can manage all your application's third-party packages, and works great on MySQL, Postgres, SQL Server, and SQLite.
2. CodeIgniter
CodeIgniter is a powerful PHP framework with a small footprint, built for those who required a simple, yet elegant toolkit to build fully-featured web applications. It requires nearly zero configuration, with no restrictive coding rules, and offers simple solutions to complex application requirements. CodeIgniter features a rich set of libraries for commonly needed tasks, as well as a simple interface and logical structure to access these libraries. It's exceptionally fast, as its core system only requires a few small libraries, with additional libraries loaded dynamically upon requests, based on your needs for a given process. This means the base system is both lean and agile. As CodeIgniter uses the MVC controller approach, it allows for great separation between logic and presentation, particularly useful for projects in which designers are working on template files.
3. CakePHP
CakePHP enables you to build web applications faster, using code generation features to rapidly build prototypes. There is no complicated configuration, just setup your database and you're ready to go. Translations, database access, caching, validation, authentication and more are all built into the framework. It comes packaged with clean MVC conventions, to guide you in developing your application. CakePHP can handle every aspect of your application, from the user's initial request all the way to the final rendering of a web page. The framework provides a basic organizational structure, from filenames to database table names, to keep your entire application consistent and logical. CakePHP also comes with built-in tools for validation and protection against SQL injection, form tampering and more, to help keep your application safe and secure.
4. Symfony
Symfony is a PHP framework to speed up the creation and maintenance of your web applications. By using existing 'de facto' standards of PHP, such as PHPUnit, and naming conventions for classes, you're not confined within the Symfony environment, but instead have the freedom to choose the software components that you want to use. It provides a set of prefabricated components that can be rapidly integrated into your application, combined with a clear methodology to help you work both efficiently and effectively on the most complex tasks. The use of Best Practices guarantees the stability, maintainability and upgradeability of any application you develop. You can choose the Full Stack (complete) version if you want to develop a complex application, or Brick by Brick, to build your own framework according to the functionality you need, or Microframework, as a standalones used to develop specific functionality in your project.
5. Zend Framework 2
Zend Framework 2 is an open-source framework for developing web applications, using object-oriented code. The components in the standard library form a powerful an extensible framework when combined, offering a robust, high performance MVC implementation. It's easily extensible, adapting to your needs, with a modular base so you can use building blocks in combination with other applications or frameworks. Using the ZendService you can implement client libraries to access the most popular web services available. As Zend is a collection of classes, you can just load the components you need, to take advantage of the components as individual libraries, instead of the framework as a whole, cutting down on unnecessary project bloat. With no model implementation you are free to implement the framework and components in whatever way you need, free of predefined restraints.
6. Phalcon
Phalcon is a PHP 5 framework that is implemented as a C extension to offer lower resource consumption and high performance. There's no need to learn or use the C Language, as the functionality is exposed as PHP classes ready to use. As Phalcon is loosely coupled, you're free to use the full framework, or just specific parts of it as glue components. Rather than download an archive, extracting it to a directory like you do with most frameworks, Phalcon can be downloaded and installed as a PHP module. By creating a rich, fully featured framework written entirely in C and packaged as a PHP extension, Phalcon is able to save processor time and boost overall performance. While it is just under two years old, the Phalcon documentation, community and development rival that of many of the more mature frameworks available.
7. Yii
Yii is a high-performance PHP framework which has powerful caching support and is explicitly designed to work efficiently with AJAX. Security is important, and that's why Yii includes input validation, output filtering, SQL injection and Cross-site scripting prevention. As Yii follows the MVC pattern, it helps you develop clean and reusable code, ensuring a clear separation of logic and presentation. You can model database data in terms of objects and avoid the complexity and tedious nature of writing repetitive SQL statements. Collecting form input is both safe and easy, as Yii comes with a set of validators as well as numerous helper methods and widgets. There is support for writing and running unit tests and functionality tests, along with efficient error handling, and log messages can be categorized, filtered and routed to different destinations. As Yii is designed to work well with third-party code, you can integrate other frameworks data into your Yii powered application.
8. Aura
Aura provides clean, fully decoupled libraries and independent libraries for PHP 5.4+ that can be used in any database, alone, in concert with each other, or into a full-stack framework of their own. It's the second major revision of Solar, rewritten as a library collection with dependency injection. It provides high-quality, well-tested, standards-compliant library packages that can be used in any codebase, with each library being self-contained and independently downloadable. There are enough libraries to form a full framework and be used for application development. As Aura is intended to take advantage of PHP5.4+, it features formal namespaces, anonymous functions, late static binding, short array syntax, traits, and more that aren't available in earlier versions of PHP.
9. Fat-Free
Fat-Free is a powerful, easy-to-use PHP micro-framework to help build dynamic and robust web applications. It's condensed into a single file (only 60kb), to give you a solid foundation and mature base code to get started quickly. It boasts an easy-to-use web development toolkit, a high performance URL routing and cache engine, built-in code highlighting and support for multilingual applications. There is no complex configuration required, with a well organized directory structure and support for both SQL and NoSQL databases. Fat-Free comes packaged with optional plug-ins to extend its capabilities, including; unit testing toolkit, template engine, markdown-to-HTML convertor, Geodata handler, custom logger, image processor and lots more. It takes a minimalistic approach to software architecture, avoiding un-necessary complication, aiming to strike a balance between code, performance and productivity.
10. PHP-MVC
PHP-MVC is an extremely simple but effective Model-View-Controller application structure which is clean, easy to learn, highly documented and features a self-explaining structure and optional Composer integration. It comes in two versions, a basic and advanced, with the advanced version featuring additional Twig support and automatic SASS compiling in pure PHP. It is not a fully featured framework but instead provides a bare-bone structure, aiming to be extremely slimmed down. It's as simple and readable as possible, with a skeleton structure for quick application building, especially useful for those new to PHP. The project encourages coders to work according to PSR 1/2 coding guidelines, promoting the usage of PFO, and the use of external libraries via Composer. As it only uses native PHP code, there's no need to re-learn a framework, so you can get started straight away.
11. Kohana
Kohana is a HMVC PHP5 framework that provides a rich set of common components to build web applications quickly, including translation tools, database access, code profiling, encryption, validation and lots more. Kohana has been carefully benchmarked to ensure it's both efficient and organized for real world usage. You can use specific libraries and tools, with simple tools to help identify bugs and solve performance issues. As Kohana is an OOP framework, it's built using strict PHP 5 classes and objects, with an easy setup as there are no code generators or complicated configuration files. With a simple routing structure and commented code, it's easy to understand and get started quickly. With an active community forum and IRC channel you have access to immediate support, along with the opportunity to contribute to Kohana on GitHub.
12. FuelPHP
FuelPHP is a simple, flexible MVC PHP 5.3+ framework, that was designed from the ground up to offer full support for HMVC as part of its architecture. With the added bonus of ViewModels (also known as presentation models), you have the option to add a powerful layer between the controller and the View. Almost every class in FuelPHP's core package can be extended without touching any code. You can also keep your application modular by dividing it into easily packaged modules so you can reuse code. Security is important so all of your output is encoded to make it secure and prevent XSS attacks. There is also support for CSRF prevention with tokens, input filtering and the Query Builder to assist you in preventing SQL injection attacks.
13. Slim
Often times a full-fledged framework can be overkill, micro-frameworks can enable rapid application development and prototyping without a steep learning curve, or any performance issues that can come with a large framework. Slim is a micro PHP framework to help you write simple, yet powerful web application and APIs, featuring standard and custom HTTP methods, route parameters, page templates and route redirects. The framework includes access to error handling and debugging, HTTP caching, Flash messages and secure cookies and AES-256 encryption. It's simple to configure and get started quickly, and the sophisticated URL router and middleware architecture make it ideal for rapid development or API prototyping. Slim isn't the only micro-framework available, other noteworthy choices include Silex, Limonade and Flight.
Have something to add to this story? Share it in the comments.
TOPICS: APPS, APPS AND SOFTWARE, CODE, DEV & DESIGN, INTEROPERABILITY, PHP FRAMEWORK,PROTOTYPE, TECH
转:分享13款PHP开发框架的更多相关文章
- 分享20款移动开发中很有用的 jQuery 插件
今天,很显然每个网站都需要有一个移动优化的界面以提高移动用户的使用体验.在开发任何移动项目时,要尽可能保持每一种资源尺寸都尽可能的小,以给最终用户提供一个好的体验是非常重要的.在这篇文章中我们已经编制 ...
- 分享15款很实用的 Sass 和 Compass 工具
Sass 是 CSS 的扩展,增加了嵌套规则,变量,混入功能等很多更多.它简化了组织和维护 CSS 代码的成本.Compass 是一个开源的 CSS 框架,使得使用 CSS3 和流行的设计模式比以往任 ...
- 唯美!分享8款响应式的 WordPress 餐厅主题
您是否拥有一个餐厅,酒吧,咖啡馆,小酒馆,比萨饼店?如果答案是肯定的,请确保您在网上也提供服务.为了使您的工作更轻松,我们选择了一些新的和独特的餐厅主题,覆盖了范围很广的食品企业.这些主题提供了很多很 ...
- 分享27款最佳的复古风格 WordPress 主题
WordPress 作为最流行的博客系统,插件众多,易于扩充功能.安装和使用都非常方便,而且有许多第三方开发的免费模板,安装方式简单易用. 复古风格可以应用于任何东西,从服装到室内设计,那么复古风格的 ...
- 13款精彩实用的最新jQuery插件
1.jQuery特色菜单 圆形动画菜单插件 jQuery是一个非常流行的WEB前端框架,尽管HTML5非常酷,但是如果HTML5结合jQuery的话就能实现更酷更实用的插件.今天分享的这款jQuery ...
- 分享50款 Android 移动应用程序图标【下篇】
在这个移动程序流行的时代,持续增长的应用程序经济充满了商业机遇.任何对应用程序设计感兴趣的人,将会喜欢上这里的50个独特的 Android 应用程序图标.这些例子中的图标能够让应用程序的设计更具吸引力 ...
- 分享50款 Android 移动应用程序图标【上篇】
在这个移动程序流行的时代,持续增长的应用程序经济充满了商业机遇.任何对应用程序设计感兴趣的人,将会喜欢上这里的50个独特的 Android 应用程序图标.这些例子中的图标能够让应用程序的设计更具吸引力 ...
- 分享7款非常实用的jQuery/CSS3插件演示和源码
上次我们分享了15款效果很酷的最新jQuery/CSS3特效,非常不错,今天要分享7个非常实用的jQuery/CSS3插件演示和源码,一起来看看. 1.jQuery ajax点击地图显示商家网点分布 ...
- 分享8款绚丽的HTML5/jQuery特效插件
有几天没有分享前端资源了,今天要向大家分享15款非常给力的HTML5/jQuery特效插件,废话少说,一起来看看. 1.CSS3图片重力感应特效 很酷的一款CSS3模拟重力感应特效,你可以拖动图片来甩 ...
随机推荐
- XBox360自制系统的更新(Update)
升级和更新 升级(Upgrade):从Windows XP到Windows 10,这叫升级,不叫更新.XBox360升级失败的话,后果可能会比较严重,直接就无法开机了. 更新(Update):在Win ...
- Mustache.js语法学习笔记
原文地址:http://www.cnblogs.com/flypig88/archive/2012/05/14/2497780.html 看了Mustache的github,学学其中的语法,做个笔记 ...
- Fork 一个仓库并同步
Fork 一个示例仓库 Fork 是对一个仓库的克隆.克隆一个仓库允许你自由试验各种改变,而不影响原始的项目. 一般来说,forks 被用于去更改别人的项目(贡献代码给已经开源的项目)或者使用别人的项 ...
- 转:有关Java泛型的类型擦除(type erasing)
转载自:拈花微笑 自从Java 5引入泛型之后,Java与C++对于泛型不同的实现的优劣便一直是饭后的谈资.在我之前的很多training中,当讲到Java泛型时总是会和C++的实现比较,一般得出的结 ...
- implode 多维数组转一维数组并字符串输出
//多维数组返回一维数组,拼接字符串输出 public function r_implode( $glue, $pieces ) { foreach( $pieces as $r_pieces ) { ...
- poj 3182 The Grove
The Grove Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 641 Accepted: 297 Descripti ...
- seq2sparse(4)之PartialVectorMergeReducer源码分析
继前篇blogseq2sparse(3)之TFParitialVectorReducer源码分析 之后,继续分析下面的代码,本次分析的是PartialVectorMergeReducer的源码,这个r ...
- ActiveX控件打包成Cab置于网页中自动下载安装(转载)
原文出自http://www.iteye.com/topic/110834 [背景] 做过ActiveX控件的朋友都知道,要想把自己做的ActiveX控件功能放在自己的网页上使用,那么用户在客户端就必 ...
- 海尔的U+智慧生活操作系统
通过一个手机APP就能操控家庭内的不同品牌的家电家居设备.在连接Wifi的状态下,海尔智能路由器能够自动连接上家庭里的智能冰箱.智能洗衣机.智能空调.智能烤箱.空气盒子等设备端.在智能手机上下载海尔U ...
- TreeView绑定无限层级关系类
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Bind_TV(TreeView1.Nodes); ...