- Instant Zend Framework 2.0
- A N M Mahabubul Hasan
- 542字
- 2021-04-10 00:03:07
So, what is Zend Framework?
Throughout the years, PHP has become one of the most popular server-side scripting languages on the Internet. This is largely due to its steep learning curve and ease of use. However, these two reasons have also contributed to many of its shortcomings.
With minimal restrictions on how you write code with this language, you can employ any style or structure that you prefer, and thus it becomes much easier to write bad code.
But there is a solution: use a framework!
A framework simplifies coding by providing a highly modular file organization with code libraries of the most common scripting in everyday programming. It helps you develop faster by eliminating the monotonous details of coding and makes your code more re-usable and easier to maintain.
There are many popular PHP frameworks out there. A number of them have large, open source communities that provide a wide range of support and offer many solutions. This is probably the main reason why most beginner PHP developers get confused while choosing a framework.
I will not discuss the pros and cons of other frameworks, but I will demonstrate briefly why Zend Framework is a great choice.
Zend Framework (ZF) is a modern, free, and open source framework that is maintained and developed by a large community of developers and backed by Zend Technologies Ltd, the company founded by the developers of PHP.
Currently, Zend Framework is used by a large number of global companies, such as BBC, Discovery, Offers.com, and Cisco. Additionally, many widely used open source projects and recognized frameworks are powered by Zend Framework, such as in the case of Magento, Centurion, TomatoCMS, and PHProjekt. And lastly, its continued development is sponsored by highly recognizable firms such as Google and Microsoft.
With all this in mind, we know one thing is certain—Zend Framework is here to stay.
Zend Framework has a rich set of components or libraries and that is why it is also known as a component framework. You will find a library in it for almost anything that you need for your everyday project, from simple form validation to file upload. It gives you the flexibility to select a single component to develop your project or opt for all components, as you may need them.
Moreover, with the release of Zend Framework 2, each component is available via Pyrus and Composer. Pyrus is a package management and distribution system, and Composer is a tool for dependency management in PHP that allows you to declare the dependent libraries your project needs and installs them in your project for you.
Zend Framework 2 follows a 100 percent object-oriented design principle and makes use of all the new PHP 5.3+ features such as namespaces, late static binding, lambda functions, and closures.
Now, let’s get started on a quick-start project to learn the basics of Zend Framework 2, and be well on our way to building our first Zend Framework MVC application.
Tip
Downloading the example code
You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.
- 從零開始:Flash CS6中文版基礎培訓教程
- 鍵盤錄入技術(第2版)
- 斯科特·凱爾比的零基礎攝影后期課 Lightroom數碼照片調修技法
- 攝影照片修飾完全自學手冊
- CakePHP 1.3 Application Development Cookbook
- Adobe創意大學After Effects產品專家認證標準教材(CS6修訂版)
- 3ds Max/MaxScript印象 腳本動畫制作基礎與應用
- Ogre 3D 1.7 Beginner's Guide
- 板繪教室:SAI零基礎日系動漫插畫入門教程
- Photoshop CC摳圖+修圖+調色+合成+特效實戰視頻教程
- 中文版Dreamweaver基礎培訓教程
- Learning the Yahoo! User Interface library
- 中文版Flash CC實例教程
- 選擇的藝術:Photoshop圖像處理深度剖析(第3版)
- 3ds Max 2014/VRay效果圖制作實戰從入門到精通