Skip to content

Commit 49e6608

Browse files
committed
Initial commit
0 parents  commit 49e6608

File tree

6 files changed

+852
-0
lines changed

6 files changed

+852
-0
lines changed

.github/workflows/actions.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Quality
2+
on: push
3+
jobs:
4+
cs-fixer:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
- name: Cs-Fixer
9+
run: |
10+
wget -q https://cs.symfony.com/download/php-cs-fixer-v2.phar -O php-cs-fixer
11+
chmod a+x php-cs-fixer
12+
PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run
13+
14+
phpunit:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: '8.0'
21+
tools: composer:v2
22+
coverage: pcov
23+
- uses: actions/cache@v2
24+
with:
25+
path: '**/vendor'
26+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
27+
restore-keys: |
28+
${{ runner.os }}-composer-
29+
- uses: php-actions/composer@v5
30+
with:
31+
args: --prefer-dist
32+
php_version: 8.0
33+
34+
- name: Run tests & generate Coverage
35+
run: bin/phpunit tests --coverage-html var/coverage --whitelist=src
36+
37+
- name: Store coverage files
38+
uses: actions/upload-artifact@v2
39+
with:
40+
path: var/coverage
41+
42+
phpstan:
43+
runs-on: ubuntu-latest
44+
strategy:
45+
matrix:
46+
phpstan-level: [ 3, 5, 7, 8 ]
47+
steps:
48+
- uses: actions/checkout@v2
49+
- uses: actions/cache@v2
50+
with:
51+
path: '**/vendor'
52+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
53+
restore-keys: |
54+
${{ runner.os }}-composer-
55+
- uses: php-actions/composer@v5
56+
with:
57+
args: --prefer-dist
58+
php_version: 8.0
59+
60+
- name: PHPStan
61+
uses: php-actions/phpstan@v2
62+
with:
63+
path: src/
64+
args: --level=${{ matrix.phpstan-level }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/vendor/

LICENSE

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Kiboko Middleware
2+
3+
MIT License
4+
5+
Copyright (c) 2020 Kiboko SAS
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in all
15+
copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
SOFTWARE.

composer.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "php-etl/string-expression-language",
3+
"description": "This library implements functions for manipulating string data in ExpressionLanguage",
4+
"type": "library",
5+
"license": "MIT",
6+
"authors": [
7+
{
8+
"name": "Grégory Planchat",
9+
"email": "gregory@kiboko.fr"
10+
}
11+
],
12+
"minimum-stability": "dev",
13+
"require": {
14+
"php": "^8.0",
15+
"symfony/expression-language": "^5.2"
16+
},
17+
"autoload": {
18+
"psr-4": {
19+
"Kiboko\\Component\\StringExpressionLanguage\\": "src/"
20+
}
21+
},
22+
"autoload-dev": {
23+
"psr-4": {
24+
"functional\\Kiboko\\Component\\StringExpressionLanguage\\": "tests/functional/"
25+
}
26+
},
27+
"extra": {
28+
"branch-alias": {
29+
"dev-master": "0.1.x-dev"
30+
}
31+
}
32+
}

0 commit comments

Comments
 (0)