Skip to content

Commit 2d09dd7

Browse files
committed
Install CakePHP 3.2.6
composer create-project --prefer-dist "cakephp/app:3.2.*" cake-3.2
1 parent a65e87f commit 2d09dd7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+4528
-0
lines changed

cake-3.2/.editorconfig

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
; This file is for unifying the coding style for different editors and IDEs.
2+
; More information at http://editorconfig.org
3+
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 4
9+
end_of_line = lf
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
[*.bat]
14+
end_of_line = crlf
15+
16+
[*.yml]
17+
indent_style = space
18+
indent_size = 2

cake-3.2/.gitattributes

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Define the line ending behavior of the different file extensions
2+
# Set default behaviour, in case users don't have core.autocrlf set.
3+
* text=auto
4+
* text eol=lf
5+
6+
# Explicitly declare text files we want to always be normalized and converted
7+
# to native line endings on checkout.
8+
*.php text
9+
*.default text
10+
*.ctp text
11+
*.sql text
12+
*.md text
13+
*.po text
14+
*.js text
15+
*.css text
16+
*.ini text
17+
*.properties text
18+
*.txt text
19+
*.xml text
20+
*.yml text
21+
.htaccess text
22+
23+
# Declare files that will always have CRLF line endings on checkout.
24+
*.bat eol=crlf
25+
26+
# Declare files that will always have LF line endings on checkout.
27+
*.pem eol=lf
28+
29+
# Denote all files that are truly binary and should not be modified.
30+
*.png binary
31+
*.jpg binary
32+
*.gif binary
33+
*.ico binary
34+
*.mo binary
35+
*.pdf binary
36+
*.phar binary

cake-3.2/.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/vendor/*
2+
/config/app.php
3+
/tmp/*
4+
/logs/*

cake-3.2/.htaccess

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<IfModule mod_rewrite.c>
2+
RewriteEngine on
3+
RewriteRule ^$ webroot/ [L]
4+
RewriteRule (.*) webroot/$1 [L]
5+
</IfModule>

cake-3.2/.travis.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language: php
2+
3+
sudo: false
4+
5+
php:
6+
- 7.0
7+
8+
before_script:
9+
- sh -c "composer require 'cakephp/cakephp-codesniffer:dev-master'"
10+
- phpenv rehash
11+
12+
script:
13+
- sh -c "vendor/bin/phpcs -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests ./config ./webroot"
14+
15+
notifications:
16+
email: false

cake-3.2/README.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# CakePHP Application Skeleton
2+
3+
[![Build Status](https://img.shields.io/travis/cakephp/app/master.svg?style=flat-square)](https://travis-ci.org/cakephp/app)
4+
[![License](https://img.shields.io/packagist/l/cakephp/app.svg?style=flat-square)](https://packagist.org/packages/cakephp/app)
5+
6+
A skeleton for creating applications with [CakePHP](http://cakephp.org) 3.x.
7+
8+
The framework source code can be found here: [cakephp/cakephp](https://github.com/cakephp/cakephp).
9+
10+
## Installation
11+
12+
1. Download [Composer](http://getcomposer.org/doc/00-intro.md) or update `composer self-update`.
13+
2. Run `php composer.phar create-project --prefer-dist cakephp/app [app_name]`.
14+
15+
If Composer is installed globally, run
16+
```bash
17+
composer create-project --prefer-dist cakephp/app [app_name]
18+
```
19+
20+
You should now be able to visit the path to where you installed the app and see
21+
the setup traffic lights.
22+
23+
## Configuration
24+
25+
Read and edit `config/app.php` and setup the 'Datasources' and any other
26+
configuration relevant for your application.

cake-3.2/bin/cake

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#!/usr/bin/env sh
2+
################################################################################
3+
#
4+
# Cake is a shell script for invoking CakePHP shell commands
5+
#
6+
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
7+
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
8+
#
9+
# Licensed under The MIT License
10+
# For full copyright and license information, please see the LICENSE.txt
11+
# Redistributions of files must retain the above copyright notice.
12+
#
13+
# @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
14+
# @link http://cakephp.org CakePHP(tm) Project
15+
# @since 1.2.0
16+
# @license http://www.opensource.org/licenses/mit-license.php MIT License
17+
#
18+
################################################################################
19+
20+
# Canonicalize by following every symlink of the given name recursively
21+
canonicalize() {
22+
NAME="$1"
23+
if [ -f "$NAME" ]
24+
then
25+
DIR=$(dirname -- "$NAME")
26+
NAME=$(cd -P "$DIR" > /dev/null && pwd -P)/$(basename -- "$NAME")
27+
fi
28+
while [ -h "$NAME" ]; do
29+
DIR=$(dirname -- "$NAME")
30+
SYM=$(readlink "$NAME")
31+
NAME=$(cd "$DIR" > /dev/null && cd $(dirname -- "$SYM") > /dev/null && pwd)/$(basename -- "$SYM")
32+
done
33+
echo "$NAME"
34+
}
35+
36+
CONSOLE=$(dirname -- "$(canonicalize "$0")")
37+
APP=$(dirname "$CONSOLE")
38+
39+
if [ $(basename $0) != 'cake' ]
40+
then
41+
exec php "$CONSOLE"/cake.php $(basename $0) "$@"
42+
else
43+
exec php "$CONSOLE"/cake.php "$@"
44+
fi
45+
46+
exit

cake-3.2/bin/cake.bat

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
2+
::
3+
:: Cake is a Windows batch script for invoking CakePHP shell commands
4+
::
5+
:: CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
6+
:: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
7+
::
8+
:: Licensed under The MIT License
9+
:: Redistributions of files must retain the above copyright notice.
10+
::
11+
:: @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
12+
:: @link http://cakephp.org CakePHP(tm) Project
13+
:: @since 2.0.0
14+
:: @license http://www.opensource.org/licenses/mit-license.php MIT License
15+
::
16+
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
17+
18+
@echo off
19+
20+
SET app=%0
21+
SET lib=%~dp0
22+
23+
php "%lib%cake.php" %*
24+
25+
echo.
26+
27+
exit /B %ERRORLEVEL%

cake-3.2/bin/cake.php

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/usr/bin/php -q
2+
<?php
3+
/**
4+
* Command-line code generation utility to automate programmer chores.
5+
*
6+
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
7+
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
8+
*
9+
* Licensed under The MIT License
10+
* For full copyright and license information, please see the LICENSE.txt
11+
* Redistributions of files must retain the above copyright notice.
12+
*
13+
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
14+
* @link http://cakephp.org CakePHP(tm) Project
15+
* @since 2.0.0
16+
* @license http://www.opensource.org/licenses/mit-license.php MIT License
17+
*/
18+
19+
$minVersion = '5.5.9';
20+
if (file_exists('composer.json')) {
21+
$composer = json_decode(file_get_contents('composer.json'));
22+
if (isset($composer->require->php)) {
23+
$minVersion = preg_replace('/([^0-9\.])/', '', $composer->require->php);
24+
}
25+
}
26+
if (version_compare(phpversion(), $minVersion, '<')) {
27+
fwrite(STDERR, sprintf("Minimum PHP version: %s. You are using: %s.\n", $minVersion, phpversion()));
28+
exit(-1);
29+
}
30+
31+
include dirname(__DIR__) . '/config/bootstrap.php';
32+
33+
exit(Cake\Console\ShellDispatcher::run($argv));

cake-3.2/composer.json

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"name": "cakephp/app",
3+
"description": "CakePHP skeleton app",
4+
"homepage": "http://cakephp.org",
5+
"type": "project",
6+
"license": "MIT",
7+
"require": {
8+
"php": ">=5.5.9",
9+
"cakephp/cakephp": "~3.2",
10+
"mobiledetect/mobiledetectlib": "2.*",
11+
"cakephp/migrations": "~1.0",
12+
"cakephp/plugin-installer": "*"
13+
},
14+
"require-dev": {
15+
"psy/psysh": "@stable",
16+
"cakephp/debug_kit": "~3.2",
17+
"cakephp/bake": "~1.1"
18+
},
19+
"suggest": {
20+
"phpunit/phpunit": "Allows automated tests to be run without system-wide install.",
21+
"cakephp/cakephp-codesniffer": "Allows to check the code against the coding standards used in CakePHP."
22+
},
23+
"autoload": {
24+
"psr-4": {
25+
"App\\": "src"
26+
}
27+
},
28+
"autoload-dev": {
29+
"psr-4": {
30+
"App\\Test\\": "tests",
31+
"Cake\\Test\\": "./vendor/cakephp/cakephp/tests"
32+
}
33+
},
34+
"scripts": {
35+
"post-install-cmd": "App\\Console\\Installer::postInstall",
36+
"post-create-project-cmd": "App\\Console\\Installer::postInstall",
37+
"post-autoload-dump": "Cake\\Composer\\Installer\\PluginInstaller::postAutoloadDump"
38+
},
39+
"minimum-stability": "stable",
40+
"prefer-stable": true
41+
}

0 commit comments

Comments
 (0)