-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
shamsuddin.s
committed
Dec 11, 2016
0 parents
commit b444842
Showing
1,017 changed files
with
271,625 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
; This file is for unifying the coding style for different editors and IDEs. | ||
; More information at http://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
indent_style = tab | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.bat] | ||
end_of_line = crlf | ||
|
||
[*.yml] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Define the line ending behavior of the different file extensions | ||
# Set default behaviour, in case users don't have core.autocrlf set. | ||
* text=auto | ||
* text eol=lf | ||
|
||
# Explicitly declare text files we want to always be normalized and converted | ||
# to native line endings on checkout. | ||
*.php text | ||
*.default text | ||
*.ctp text | ||
*.sql text | ||
*.md text | ||
*.po text | ||
*.js text | ||
*.css text | ||
*.ini text | ||
*.properties text | ||
*.txt text | ||
*.xml text | ||
*.yml text | ||
.htaccess text | ||
|
||
# Declare files that will always have CRLF line endings on checkout. | ||
*.bat eol=crlf | ||
|
||
# Declare files that will always have LF line endings on checkout. | ||
*.pem eol=lf | ||
|
||
# Denote all files that are truly binary and should not be modified. | ||
*.png binary | ||
*.jpg binary | ||
*.gif binary | ||
*.ico binary | ||
*.mo binary | ||
*.pdf binary | ||
*.woff binary | ||
*.ttf binary | ||
*.eot binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# User specific & automatically generated files # | ||
################################################# | ||
/app/Config/database.php | ||
/app/tmp | ||
/lib/Cake/Console/Templates/skel/tmp/ | ||
/plugins | ||
/vendors | ||
/build | ||
/dist | ||
/tags | ||
*.mo | ||
|
||
# IDE and editor specific files # | ||
################################# | ||
/nbproject | ||
.idea | ||
|
||
# OS generated files # | ||
###################### | ||
.DS_Store | ||
.DS_Store? | ||
._* | ||
.Spotlight-V100 | ||
.Trashes | ||
Icon? | ||
ehthumbs.db | ||
Thumbs.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine on | ||
RewriteRule ^$ app/webroot/ [L] | ||
RewriteRule (.*) app/webroot/$1 [L] | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
language: php | ||
|
||
php: | ||
- 5.3 | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
|
||
env: | ||
- DB=mysql | ||
|
||
services: | ||
- memcached | ||
|
||
matrix: | ||
fast_finish: true | ||
include: | ||
- php: 5.4 | ||
env: DB=pgsql | ||
|
||
- php: 5.4 | ||
env: DB=sqlite | ||
|
||
- php: 5.4 | ||
env: PHPCS=1 | ||
|
||
|
||
before_script: | ||
- sh -c "composer global require 'phpunit/phpunit=3.7.33'" | ||
- sh -c "ln -s ~/.composer/vendor/phpunit/phpunit/PHPUnit ./vendors/PHPUnit" | ||
- sudo locale-gen de_DE | ||
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test;'; fi" | ||
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test2;'; fi" | ||
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test3;'; fi" | ||
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'CREATE DATABASE cakephp_test;' -U postgres; fi" | ||
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'CREATE SCHEMA test2;' -U postgres -d cakephp_test; fi" | ||
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'CREATE SCHEMA test3;' -U postgres -d cakephp_test; fi" | ||
- chmod -R 777 ./app/tmp | ||
- sudo apt-get install lighttpd | ||
- sh -c "if [ '$PHPCS' = '1' ]; then composer global require 'cakephp/cakephp-codesniffer:1.*'; fi" | ||
- sh -c "if [ '$PHPCS' = '1' ]; then ~/.composer/vendor/bin/phpcs --config-set installed_paths ~/.composer/vendor/cakephp/cakephp-codesniffer; fi" | ||
- echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini | ||
- phpenv rehash | ||
- set +H | ||
- echo "<?php | ||
class DATABASE_CONFIG { | ||
private \$identities = array( | ||
'mysql' => array( | ||
'datasource' => 'Database/Mysql', | ||
'host' => '0.0.0.0', | ||
'login' => 'travis' | ||
), | ||
'pgsql' => array( | ||
'datasource' => 'Database/Postgres', | ||
'host' => '127.0.0.1', | ||
'login' => 'postgres', | ||
'database' => 'cakephp_test', | ||
'schema' => array( | ||
'default' => 'public', | ||
'test' => 'public', | ||
'test2' => 'test2', | ||
'test_database_three' => 'test3' | ||
) | ||
), | ||
'sqlite' => array( | ||
'datasource' => 'Database/Sqlite', | ||
'database' => array( | ||
'default' => ':memory:', | ||
'test' => ':memory:', | ||
'test2' => '/tmp/cakephp_test2.db', | ||
'test_database_three' => '/tmp/cakephp_test3.db' | ||
), | ||
) | ||
); | ||
public \$default = array( | ||
'persistent' => false, | ||
'host' => '', | ||
'login' => '', | ||
'password' => '', | ||
'database' => 'cakephp_test', | ||
'prefix' => '' | ||
); | ||
public \$test = array( | ||
'persistent' => false, | ||
'host' => '', | ||
'login' => '', | ||
'password' => '', | ||
'database' => 'cakephp_test', | ||
'prefix' => '' | ||
); | ||
public \$test2 = array( | ||
'persistent' => false, | ||
'host' => '', | ||
'login' => '', | ||
'password' => '', | ||
'database' => 'cakephp_test2', | ||
'prefix' => '' | ||
); | ||
public \$test_database_three = array( | ||
'persistent' => false, | ||
'host' => '', | ||
'login' => '', | ||
'password' => '', | ||
'database' => 'cakephp_test3', | ||
'prefix' => '' | ||
); | ||
public function __construct() { | ||
\$db = 'mysql'; | ||
if (!empty(\$_SERVER['DB'])) { | ||
\$db = \$_SERVER['DB']; | ||
} | ||
foreach (array('default', 'test', 'test2', 'test_database_three') as \$source) { | ||
\$config = array_merge(\$this->{\$source}, \$this->identities[\$db]); | ||
if (is_array(\$config['database'])) { | ||
\$config['database'] = \$config['database'][\$source]; | ||
} | ||
if (!empty(\$config['schema']) && is_array(\$config['schema'])) { | ||
\$config['schema'] = \$config['schema'][\$source]; | ||
} | ||
\$this->{\$source} = \$config; | ||
} | ||
} | ||
}" > app/Config/database.php | ||
script: | ||
- sh -c "if [ '$PHPCS' != '1' ]; then ./lib/Cake/Console/cake test core AllTests --stderr; fi" | ||
- sh -c "if [ '$PHPCS' = '1' ]; then ~/.composer/vendor/bin/phpcs -p --extensions=php --standard=CakePHP ./lib/Cake; fi;" | ||
|
||
notifications: | ||
email: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# How to contribute | ||
|
||
CakePHP loves to welcome your contributions. There are several ways to help out: | ||
* Create an [issue](https://github.com/cakephp/cakephp/issues) on GitHub, if you have found a bug | ||
* Write test cases for open bug issues | ||
* Write patches for open bug/feature issues, preferably with test cases included | ||
* Contribute to the [documentation](https://github.com/cakephp/docs) | ||
|
||
There are a few guidelines that we need contributors to follow so that we have a | ||
chance of keeping on top of things. | ||
|
||
## Getting Started | ||
|
||
* Make sure you have a [GitHub account](https://github.com/signup/free). | ||
* Submit an [issue](https://github.com/cakephp/cakephp/issues), assuming one does not already exist. | ||
* Clearly describe the issue including steps to reproduce when it is a bug. | ||
* Make sure you fill in the earliest version that you know has the issue. | ||
* Fork the repository on GitHub. | ||
|
||
## Making Changes | ||
|
||
* Create a topic branch from where you want to base your work. | ||
* This is usually the master branch. | ||
* Only target release branches if you are certain your fix must be on that | ||
branch. | ||
* To quickly create a topic branch based on master; `git branch | ||
master/my_contribution master` then checkout the new branch with `git | ||
checkout master/my_contribution`. Better avoid working directly on the | ||
`master` branch, to avoid conflicts if you pull in updates from origin. | ||
* Make commits of logical units. | ||
* Check for unnecessary whitespace with `git diff --check` before committing. | ||
* Use descriptive commit messages and reference the #issue number. | ||
* Core test cases should continue to pass. You can run tests locally or enable | ||
[travis-ci](https://travis-ci.org/) for your fork, so all tests and codesniffs | ||
will be executed. | ||
* Your work should apply the [CakePHP coding standards](http://book.cakephp.org/2.0/en/contributing/cakephp-coding-conventions.html). | ||
|
||
## Which branch to base the work | ||
|
||
* Bugfix branches will be based on master. | ||
* New features that are backwards compatible will be based on next minor release | ||
branch. | ||
* New features or other non backwards compatible changes will go in the next major release branch. | ||
|
||
## Submitting Changes | ||
|
||
* Push your changes to a topic branch in your fork of the repository. | ||
* Submit a pull request to the repository in the cakephp organization, with the | ||
correct target branch. | ||
|
||
## Test cases and codesniffer | ||
|
||
CakePHP tests requires [PHPUnit](http://www.phpunit.de/manual/current/en/installation.html) | ||
3.7, version 4 is not compatible. To run the test cases locally use the following command: | ||
|
||
./lib/Cake/Console/cake test core AllTests --stderr | ||
|
||
To run the sniffs for CakePHP coding standards: | ||
|
||
phpcs -p --extensions=php --standard=CakePHP ./lib/Cake | ||
|
||
Check the [cakephp-codesniffer](https://github.com/cakephp/cakephp-codesniffer) | ||
repository to setup the CakePHP standard. The [README](https://github.com/cakephp/cakephp-codesniffer/blob/master/README.md) contains installation info | ||
for the sniff and phpcs. | ||
|
||
# Additional Resources | ||
|
||
* [CakePHP coding standards](http://book.cakephp.org/2.0/en/contributing/cakephp-coding-conventions.html) | ||
* [Existing issues](https://github.com/cakephp/cakephp/issues) | ||
* [Development Roadmaps](https://github.com/cakephp/cakephp/wiki#roadmaps) | ||
* [General GitHub documentation](https://help.github.com/) | ||
* [GitHub pull request documentation](https://help.github.com/send-pull-requests/) | ||
* #cakephp IRC channel on freenode.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# CakePHP | ||
|
||
[![Latest Stable Version](https://poser.pugx.org/cakephp/cakephp/v/stable.svg)](https://packagist.org/packages/cakephp/cakephp) | ||
[![License](https://poser.pugx.org/cakephp/cakephp/license.svg)](https://packagist.org/packages/cakephp/cakephp) | ||
[![Bake Status](https://secure.travis-ci.org/cakephp/cakephp.png?branch=master)](http://travis-ci.org/cakephp/cakephp) | ||
[![Code consistency](http://squizlabs.github.io/PHP_CodeSniffer/analysis/cakephp/cakephp/grade.svg)](http://squizlabs.github.io/PHP_CodeSniffer/analysis/cakephp/cakephp/) | ||
|
||
[![CakePHP](http://cakephp.org/img/cake-logo.png)](http://www.cakephp.org) | ||
|
||
CakePHP is a rapid development framework for PHP which uses commonly known design patterns like Active Record, Association Data Mapping, Front Controller and MVC. | ||
Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. | ||
|
||
|
||
## Some Handy Links | ||
|
||
[CakePHP](http://www.cakephp.org) - The rapid development PHP framework | ||
|
||
[CookBook](http://book.cakephp.org) - THE CakePHP user documentation; start learning here! | ||
|
||
[API](http://api.cakephp.org) - A reference to CakePHP's classes | ||
|
||
[Plugins](http://plugins.cakephp.org/) - A repository of extensions to the framework | ||
|
||
[The Bakery](http://bakery.cakephp.org) - Tips, tutorials and articles | ||
|
||
[Community Center](http://community.cakephp.org) - A source for everything community related | ||
|
||
[Training](http://training.cakephp.org) - Join a live session and get skilled with the framework | ||
|
||
[CakeFest](http://cakefest.org) - Don't miss our annual CakePHP conference | ||
|
||
[Cake Software Foundation](http://cakefoundation.org) - Promoting development related to CakePHP | ||
|
||
|
||
## Get Support! | ||
|
||
[#cakephp](http://webchat.freenode.net/?channels=#cakephp) on irc.freenode.net - Come chat with us, we have cake | ||
|
||
[Google Group](https://groups.google.com/group/cake-php) - Community mailing list and forum | ||
|
||
[GitHub Issues](https://github.com/cakephp/cakephp/issues) - Got issues? Please tell us! | ||
|
||
[Roadmaps](https://github.com/cakephp/cakephp/wiki#roadmaps) - Want to contribute? Get involved! | ||
|
||
|
||
## Contributing | ||
|
||
[CONTRIBUTING.md](CONTRIBUTING.md) - Quick pointers for contributing to the CakePHP project | ||
|
||
[CookBook "Contributing" Section (2.x)](http://book.cakephp.org/2.0/en/contributing.html) [(3.0)](http://book.cakephp.org/3.0/en/contributing.html) - Version-specific details about contributing to the project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine on | ||
RewriteRule ^$ webroot/ [L] | ||
RewriteRule (.*) webroot/$1 [L] | ||
</IfModule> |
Oops, something went wrong.