Skip to content

Commit 137dbe8

Browse files
authored
Merge pull request #7 from adrorocker/1.0
Rewrite for PHP 8.3, add Firestore support
2 parents a95e316 + 303b0ff commit 137dbe8

97 files changed

Lines changed: 7452 additions & 1739 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.

‎.coveralls.yml‎

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

‎.gitattributes‎

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
# Enforce Unix newlines
22
* text=lf
33

4-
# Exclude unused files
5-
# see: https://redd.it/2jzp6k
6-
/example export-ignore
7-
/docs export-ignore
4+
# Keep development files out of the installed package
5+
/.github export-ignore
86
/tests export-ignore
9-
/.codeclimate.yml export-ignore
10-
/.coveralls.yml export-ignore
11-
/.editorconfig export-ignore
127
/.gitattributes export-ignore
138
/.gitignore export-ignore
14-
/.travis.yml export-ignore
15-
/CONTRIBUTING.md export-ignore
16-
/README.md export-ignore
17-
/phpcs.xml export-ignore
18-
/phpunit.xml.dist export-ignore
9+
/.php-cs-fixer.dist.php export-ignore
10+
/phpstan.neon.dist export-ignore
11+
/phpunit.xml.dist export-ignore
12+
/UPGRADING.md export-ignore

‎.github/workflows/ci.yml‎

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
8+
jobs:
9+
tests:
10+
name: Tests on PHP ${{ matrix.php }}
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
php: ['8.3', '8.4', '8.5']
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: ${{ matrix.php }}
23+
extensions: ctype, filter, json, mbstring
24+
coverage: none
25+
26+
- uses: ramsey/composer-install@v3
27+
28+
- run: vendor/bin/phpunit
29+
30+
static-analysis:
31+
name: Static analysis
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v4
35+
36+
- uses: shivammathur/setup-php@v2
37+
with:
38+
php-version: '8.3'
39+
coverage: none
40+
41+
- uses: ramsey/composer-install@v3
42+
43+
- run: vendor/bin/phpstan analyse --no-progress --memory-limit=1G
44+
45+
coding-standards:
46+
name: Coding standards
47+
runs-on: ubuntu-latest
48+
steps:
49+
- uses: actions/checkout@v4
50+
51+
- uses: shivammathur/setup-php@v2
52+
with:
53+
php-version: '8.3'
54+
coverage: none
55+
56+
- uses: ramsey/composer-install@v3
57+
58+
- run: vendor/bin/php-cs-fixer fix --dry-run --diff

‎.gitignore‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
build
2-
html
3-
vendor
4-
composer.lock
1+
/vendor/
2+
/composer.lock
3+
/.phpunit.cache/
4+
/.php-cs-fixer.cache
5+
/build/
6+
.phpactor.json

‎.php-cs-fixer.dist.php‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
$finder = PhpCsFixer\Finder::create()->in([__DIR__.'/src', __DIR__.'/tests']);
6+
7+
return (new PhpCsFixer\Config())
8+
->setRiskyAllowed(true)
9+
->setRules([
10+
'@PSR12' => true,
11+
'@PHP83Migration' => true,
12+
'declare_strict_types' => true,
13+
'ordered_imports' => ['sort_algorithm' => 'alpha'],
14+
'no_unused_imports' => true,
15+
'single_quote' => true,
16+
'trailing_comma_in_multiline' => ['elements' => ['arrays', 'arguments', 'parameters']],
17+
])
18+
->setFinder($finder);

‎.travis.yml‎

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

0 commit comments

Comments
 (0)