Skip to content

Commit 71057a3

Browse files
committed
Merge branch 'master' of github.com:mixerapi/mixerapi-dev
2 parents c1a281e + 9d1d50c commit 71057a3

197 files changed

Lines changed: 3530 additions & 10340 deletions

File tree

Some content is hidden

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

.github/workflows/build.yml

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

.github/workflows/pull-request.yml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
name: Pull Request
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
operating-system: [ ubuntu-20.04 ]
12+
php-versions: ['8.0', '8.1']
13+
14+
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
19+
- name: Setup PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: ${{ matrix.php-versions }}
23+
extensions: mbstring, intl, sqlite3, xml, simplexml, mysqli
24+
tools: composer:v2
25+
coverage: xdebug
26+
27+
- name: Matrix PHP Version
28+
run: |
29+
echo ${{ matrix.php-versions }}
30+
php -v
31+
32+
- name: Composer Check
33+
run: composer validate
34+
35+
- name: Install
36+
run: |
37+
composer install --prefer-dist --no-interaction --no-progress
38+
cp config/.env.example config/.env
39+
cp config/app_local.example.php config/app_local.php
40+
41+
- name: Test Suite + Static Analysis (PHP 8.0)
42+
if: ${{ matrix.php-versions == '8.0' }}
43+
run: |
44+
composer analyze
45+
46+
- name: Upload coverage results to Coveralls (PHP 8.0)
47+
if: ${{ matrix.php-versions == '8.0' }}
48+
env:
49+
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
run: |
51+
composer global require php-coveralls/php-coveralls
52+
export CODECOVERAGE=1 && vendor/bin/phpunit --verbose --coverage-clover=clover.xml
53+
php-coveralls --coverage_clover=clover.xml -v
54+
55+
- name: Test Suite (PHP 8.1)
56+
if: ${{ matrix.php-versions == '8.1' }}
57+
run: |
58+
composer test
59+
60+
#
61+
# CakePHP version compatability
62+
#
63+
compatibility:
64+
runs-on: ubuntu-latest
65+
strategy:
66+
matrix:
67+
version: ['~4.2.0', '~4.3.0']
68+
steps:
69+
- name: Checkout
70+
uses: actions/checkout@v2
71+
72+
- name: Setup PHP
73+
uses: shivammathur/setup-php@v2
74+
with:
75+
php-version: '8.0'
76+
extensions: mbstring, intl, sqlite3, xml, simplexml, mysqli
77+
78+
- name: PHP Version
79+
run: php -v
80+
81+
- name: CakePHP ${{matrix.version}} Compatability
82+
run: |
83+
cp config/.env.example config/.env
84+
composer self-update
85+
rm -rf composer.lock
86+
composer require cakephp/cakephp:${{matrix.version}} --no-update
87+
composer install --prefer-dist --no-progress
88+
composer test

README.md

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,23 @@
1-
<h1 align="center">
2-
MixerAPI
3-
</h1>
1+
![Logo](./assets/mixerapi.svg#gh-light-mode-only)
2+
43
<p align="center">
5-
<a href="http://mixerapi.com/">
6-
<img alt="MixerAPI" src="https://mixerapi.com/assets/logo.png" />
7-
</a>
4+
Dev/Mono Repo for MixerAPI &mdash; A CakePHP Plugin for RESTful API Development
85
</p>
9-
106
<p align="center">
11-
<a href="LICENSE.txt" target="_blank">
12-
<img alt="Software License" src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square">
13-
</a>
147
<a href="https://github.com/mixerapi/mixerapi-dev/actions?query=workflow%3ABuild" target="_blank">
158
<img alt="Build Status" src="https://github.com/mixerapi/mixerapi-dev/workflows/Build/badge.svg?branch=master">
169
</a>
1710
<a href="https://coveralls.io/github/mixerapi/mixerapi-dev?branch=master" target="_blank">
1811
<img alt="Coverage Status" src="https://coveralls.io/repos/github/mixerapi/mixerapi-dev/badge.svg?branch=master">
1912
</a>
2013
<a href="https://book.cakephp.org/4/en/index.html">
21-
<img alt="CakePHP ^4.0" src="https://img.shields.io/badge/cakephp-^4.0-red?logo=cakephp">
14+
<img alt="CakePHP ^4.2" src="https://img.shields.io/badge/cakephp-^4.2-red?logo=cakephp">
2215
</a>
2316
<a href="https://php.net/" target="_blank">
24-
<img alt="PHP >= 7.2" src="https://img.shields.io/badge/php-%3E%3D%207.2-8892BF.svg?logo=php">
17+
<img alt="PHP ^8.0" src="https://img.shields.io/badge/php-^8.0-8892BF.svg?logo=php">
18+
</a>
19+
<a href="LICENSE.txt" target="_blank">
20+
<img alt="Software License" src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square">
2521
</a>
2622
</p>
2723

@@ -115,4 +111,4 @@ To build:
115111
```console
116112
composer mkdocs-build
117113
```
118-
114+

assets/mixerapi.svg

Lines changed: 9 additions & 0 deletions
Loading

composer.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,34 @@
55
"type": "project",
66
"license": "MIT",
77
"require": {
8-
"php": ">=7.2",
8+
"php": "^8.0",
99
"ext-json": "*",
1010
"ext-simplexml": "*",
1111
"ext-xml": "*",
1212
"adbario/php-dot-notation": "^2.2",
13-
"cakephp/cakephp": "^4.0",
13+
"cakephp/cakephp": "^4.2",
1414
"cakephp/migrations": "^3.0",
1515
"cakephp/plugin-installer": "^1.3",
16-
"cnizzardini/cakephp-swagger-bake": "^1.6",
16+
"cnizzardini/cakephp-swagger-bake": "^2.1",
1717
"friendsofcake/search": "^6.0",
1818
"mobiledetect/mobiledetectlib": "^2.8"
1919
},
2020
"require-dev": {
2121
"ext-mysqli": "*",
2222
"ext-sqlite3": "*",
2323
"cakephp/bake": "^2.0.3",
24-
"cakephp/cakephp-codesniffer": "~4.2.0",
24+
"cakephp/cakephp-codesniffer": "^4.2",
2525
"cakephp/debug_kit": "^4.1",
2626
"dereuromark/cakephp-ide-helper": "^1.10",
2727
"josegonzalez/dotenv": "^3.2",
28-
"phpmd/phpmd": "^2.9",
28+
"phpmd/phpmd": "^2.10",
2929
"phpro/grumphp": "^1.3",
3030
"phpstan/phpstan": "^0.12.64",
31-
"phpunit/phpunit": "~8.5.0",
31+
"phpunit/phpunit": "^9.0",
3232
"psy/psysh": "@stable"
3333
},
3434
"replace": {
35-
"mixerapi/core": "^0.2"
35+
"mixerapi/core": "^1.0"
3636
},
3737
"suggest": {
3838
"markstory/asset_compress": "An asset compression plugin which provides file concatenation and a flexible filter system for preprocessing and minification.",
@@ -58,7 +58,7 @@
5858
"App\\Test\\": "tests/",
5959
"Cake\\Test\\": "vendor/cakephp/cakephp/tests/",
6060
"MixerApi\\Bake\\Test\\": "plugins/bake/tests/",
61-
"MixerApi\\Bake\\Test\\App\\": "plugins/bake/tests/test_app/App/",
61+
"MixerApi\\Bake\\Test\\App\\": "plugins/bake/tests/test_app/src/",
6262
"MixerApi\\CollectionView\\Test\\": "plugins/collection-view/tests/",
6363
"MixerApi\\CollectionView\\Test\\App\\": "plugins/collection-view/tests/test_app/src/",
6464
"MixerApi\\Core\\Test\\": "plugins/core/tests/",
@@ -74,7 +74,7 @@
7474
"MixerApi\\Test\\": "plugins/mixerapi/tests/",
7575
"MixerApi\\Test\\App\\": "plugins/mixerapi/tests/test_app/src/",
7676
"MixerApi\\Rest\\Test\\": "plugins/rest/tests/",
77-
"MixerApi\\Rest\\Test\\App\\": "plugins/rest/tests/test_app/App/",
77+
"MixerApi\\Rest\\Test\\App\\": "plugins/rest/tests/test_app/src/",
7878
"MixerApi\\Rest\\Test\\MyPlugin\\": "plugins/rest/tests/plugins/MyPlugin/"
7979
}
8080
},
@@ -85,7 +85,7 @@
8585
"@phpstan",
8686
"@phpmd"
8787
],
88-
"test": "phpunit --colors=always",
88+
"test": "vendor/bin/phpunit",
8989
"phpcs": "phpcs --colors -p --standard=vendor/cakephp/cakephp-codesniffer/CakePHP plugins/*/src",
9090
"phpcbf": "phpcbf --colors -p --standard=vendor/cakephp/cakephp-codesniffer/CakePHP plugins/*/src",
9191
"phpstan": "phpstan analyse plugins/*/src",

0 commit comments

Comments
 (0)