Skip to content

Commit 241ad77

Browse files
committed
Create Hello World benchmark
1 parent 9d3fd05 commit 241ad77

Some content is hidden

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

64 files changed

+5509
-7066
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

.htaccess

Lines changed: 0 additions & 12 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

README.md

Lines changed: 16 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,27 @@
1-
# CakePHP Application Skeleton
1+
<p align="center">
2+
<img src="http://www.phpbenchmarks.com/images/logo_github.png">
3+
<br>
4+
<a href="http://www.phpbenchmarks.com" target="_blank">www.phpbenchmarks.com</a>
5+
</p>
26

3-
[![Build Status](https://img.shields.io/travis/cakephp/app/master.svg?style=flat-square)](https://travis-ci.org/cakephp/app)
4-
[![Total Downloads](https://img.shields.io/packagist/dt/cakephp/app.svg?style=flat-square)](https://packagist.org/packages/cakephp/app)
7+
## What is www.phpbenchmarks.com ?
58

6-
A skeleton for creating applications with [CakePHP](https://cakephp.org) 3.x.
9+
You will find lot of benchmarks for PHP frameworks and template engines.
710

8-
The framework source code can be found here: [cakephp/cakephp](https://github.com/cakephp/cakephp).
11+
You can compare results between Apache Bench and Siege, and PHP 5.6 to 7.3.
912

10-
## Installation
13+
## What is this repository ?
1114

12-
1. Download [Composer](https://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]`.
15+
It's benchmark common code for CakePHP benchmarks.
1416

15-
If Composer is installed globally, run
17+
Switch branch to select your CakePHP major version and benchmark you want to see.
1618

17-
```bash
18-
composer create-project --prefer-dist cakephp/app
19-
```
19+
See all CakePHP benchmarked versions on [phpbenchmarks/cake-php](https://github.com/phpbenchmarks/cake-php).
2020

21-
In case you want to use a custom app dir name (e.g. `/myapp/`):
21+
You can find how we benchmark on [phpbenchmarks.com](http://www.phpbenchmarks.com/en/benchmark-protocol.html).
2222

23-
```bash
24-
composer create-project --prefer-dist cakephp/app myapp
25-
```
23+
## Benchmarks
2624

27-
You can now either use your machine's webserver to view the default home page, or start
28-
up the built-in webserver with:
25+
You can find all CakePHP benchmarks results on [phpbenchmarks.com](http://www.phpbenchmarks.com/en/benchmark/cake-php.html).
2926

30-
```bash
31-
bin/cake server -p 8765
32-
```
33-
34-
Then visit `http://localhost:8765` to see the welcome page.
35-
36-
## Update
37-
38-
Since this skeleton is a starting point for your application and various files
39-
would have been modified as per your needs, there isn't a way to provide
40-
automated upgrades, so you have to do any updates manually.
41-
42-
## Configuration
43-
44-
Read and edit `config/app.php` and setup the `'Datasources'` and any other
45-
configuration relevant for your application.
46-
47-
## Layout
48-
49-
The app skeleton uses a subset of [Foundation](http://foundation.zurb.com/) (v5) CSS
50-
framework by default. You can, however, replace it with any other library or
51-
custom styles.
27+
Scores are too low ? Do not hesitate to create a pull request, and ask a new benchmark !

composer.json

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,22 @@
11
{
2-
"name": "cakephp/app",
3-
"description": "CakePHP skeleton app",
4-
"homepage": "https://cakephp.org",
2+
"name": "phpbenchmarks/cake-php",
53
"type": "project",
6-
"license": "MIT",
4+
"license": "proprietary",
75
"require": {
86
"php": ">=5.6",
97
"cakephp/cakephp": "3.7.*",
108
"cakephp/migrations": "^2.0.0",
119
"cakephp/plugin-installer": "^1.0",
12-
"mobiledetect/mobiledetectlib": "2.*"
13-
},
14-
"require-dev": {
15-
"cakephp/bake": "^1.9.0",
16-
"cakephp/cakephp-codesniffer": "^3.0",
17-
"cakephp/debug_kit": "^3.17.0",
18-
"josegonzalez/dotenv": "3.*",
19-
"phpunit/phpunit": "^5|^6",
20-
"psy/psysh": "@stable"
21-
},
22-
"suggest": {
23-
"markstory/asset_compress": "An asset compression plugin which provides file concatenation and a flexible filter system for preprocessing and minification.",
24-
"dereuromark/cakephp-ide-helper": "After baking your code, this keeps your annotations in sync with the code evolving from there on for maximum IDE and PHPStan compatibility."
10+
"mobiledetect/mobiledetectlib": "2.*",
11+
"phpbenchmarks/cake-php-common": "3.1.1"
2512
},
2613
"autoload": {
2714
"psr-4": {
2815
"App\\": "src/"
2916
}
3017
},
31-
"autoload-dev": {
32-
"psr-4": {
33-
"App\\Test\\": "tests/",
34-
"Cake\\Test\\": "vendor/cakephp/cakephp/tests/"
35-
}
36-
},
3718
"scripts": {
38-
"post-install-cmd": "App\\Console\\Installer::postInstall",
39-
"post-create-project-cmd": "App\\Console\\Installer::postInstall",
40-
"post-autoload-dump": "Cake\\Composer\\Installer\\PluginInstaller::postAutoloadDump",
41-
"check": [
42-
"@test",
43-
"@cs-check"
44-
],
45-
"cs-check": "phpcs --colors -p --standard=vendor/cakephp/cakephp-codesniffer/CakePHP src/ tests/",
46-
"cs-fix": "phpcbf --colors --standard=vendor/cakephp/cakephp-codesniffer/CakePHP src/ tests/",
47-
"test": "phpunit --colors=always"
19+
"post-autoload-dump": "Cake\\Composer\\Installer\\PluginInstaller::postAutoloadDump"
4820
},
4921
"prefer-stable": true,
5022
"config": {

0 commit comments

Comments
 (0)