Sunday, 16 August 2015

CAKE PHP OVERVIEW


CAKE PHP INSTALLATION





CakePHP is fast and easy to install. The minimum requirements are a webserver and a copy of CakePHP, that’s it! While this manual focuses primarily on setting up on Apache (because it’s the most commonly used), you can configure CakePHP to run on a variety of web servers such as lighttpd or Microsoft IIS.

CAKE PHP REQUIREMENT


  • HTTP Server. For example: Apache. mod_rewrite is preferred, but by no means required.
  • PHP 5.3.0 or greater (CakePHP version 2.6 and below support PHP 5.2.8 and above).
  • Technically a database engine isn’t required, but we imagine that most applications will utilize one. CakePHP supports a variety of database storage engines:
  • MySQL (4 or greater)
  • PostgreSQL
  • Microsoft SQL Server
  • SQLite


CAKE PHP LICENSE


CakePHP is licensed under the MIT license. This means that you are free to modify, distribute and republish the source code on the condition that the copyright notices are left intact. You are also free to incorporate CakePHP into any commercial or closed source application.


DOWNLOADING CAKE PHP


There are two main ways to get a fresh copy of CakePHP. You can either download an archived copy (zip/tar.gz/tar.bz2) from the main website, or check out the code from the git repository. To download the latest major release of CakePHP, visit the main website http://cakephp.org and follow the “Download” link. All current releases of CakePHP are hosted on GitHub. GitHub houses both CakePHP itself as well as many other plugins for CakePHP. The CakePHP releases are available at GitHub tags. Alternatively you can get fresh off the press code, with all the bug-fixes and up to the minute enhancements. These can be accessed from GitHub by cloning the GitHub repository:

git clone git://github.com/cakephp/cakephp.git



CAKE PHP PERMISSIONS


CakePHP uses the app/tmp directory for a number of different operations. A few examples would be Model descriptions, cached views and session information. As such, make sure the directory app/tmp and all its subdirectories in your CakePHP installation are writable by the web server user. One common issue is that the app/tmp directories and subdirectories must be writable both by the web server and the command line user. On a UNIX system, if your web server user is different from your command line user, you can run the following commands just once in your project to ensure that permissions will be setup properly:
HTTPDUSER=`ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1` setfacl -R -m u:${HTTPDUSER}:rwx app/tmp setfacl -R -d -m u:${HTTPDUSER}:rwx app/tmp


CAKE PHP SETUP


Setting up CakePHP can be as simple as slapping it in your web server’s document root, or as complex and flexible as you wish. This section will cover the three main installation types for CakePHP: development, production, and advanced.
  • Development: easy to get going, URLs for the application include the CakePHP installation directory name, and less secure.
  • Production: Requires the ability to configure the web server’s document root, clean URLs, very secure.
  • Advanced: With some configuration, allows you to place key CakePHP directories in different parts of the filesystem, possibly sharing a single CakePHP core library folder amongst many CakePHP applications.


CAKE PHP DEVELOPMENT


A development installation is the fastest method to setup CakePHP. This example will help you install a CakePHP application and make it available at http://www.example.com/cake_2_0/. We assume for the purposes of this example that your document root is set to /var/www/html. Unpack the contents of the CakePHP archive into /var/www/html. You now have a folder in your document root named after the release you’ve downloaded (e.g. cake_2.0.0). Rename this folder to cake_2_0. Your development setup will look like this on the file system:
/var/www/html/ cake_2_0/ app/ lib/ plugins/ vendors/ .htaccess index.php README
If your web server is configured correctly, you should now find your CakePHP application accessible at http://www.example.com/cake_2_0/.

Saturday, 1 August 2015

HOME


TOP PHP FRAMEWORKS







1. CAKE PHP FRAMEWORK




Cakephp is one the most popular open source platform for developing dynamic web applications. You can use Cakephp for developing highly robust database driven websites. But what is so special about Cakephp? The most important feature of Cakephp is that it is derived from Ruby on Rails, a very successful web development framework, and provides a rapid development platform to developers. The ease and rapidness of development allows developers to create highly cost effective websites using Cakephp framework.



2. CODEIGNITE PHP FRAMEWORK




CodeIgniter is a powerful PHP framework with a very small footprint, built for developers who need a simple and elegant toolkit to create full-featured web applications.
The first public version of CodeIgniter was released by ELLISLAB on February 28, 2006, and the latest stable version 3.0.0 was released March 30, 2015. On July 9, 2013, EllisLab announced that it was seeking a new owner for CodeIgniter, citing a lack of resources to give the framework the attention they felt it deserved.On October 6, 2014, EllisLab announced that CodeIgniter would continue development under the stewardship of the British Columbia Institute of Technology.



3. ZEND PHP FRAMEWORK




Zend Framework is one of the most widely preferred PHP Framework to run successful web development ventures. It’s ability to provide sturdy back-up end support to the development process in order to realize desired performance and functionalities accounts for its widespread popularity. Zend Framework is a Central Management System that renders a permanent structure to the development project. In addition, it is expedites the development process as it requires lesser codes and is more secure as compared to other CMS.





4. SYMPHONY PHP FRAMEWORK




Symfony is a PHP web application framework for MVC applications. Symfony is free software and released under the MIT license. The symfony-project.com website launched on October 18, 2005.Symfony was heavily inspired by other web application frameworks such as Ruby on Rails, Django, and Spring.

Symfony aims to speed up the creation and maintenance of web applications and to replace repetitive coding tasks. Symfony has a low performance overhead used with a bytecode cache. Symfony is aimed at building robust applications in an enterprise context, and aims to give developers full control over the configuration: from the directory structure to the foreign libraries, almost everything can be customized. To match enterprise development guidelines, Symfony is bundled with additional tools to help developers test, debug and document projects.