Skip to content

Commit bc7d00a

Browse files
committed
Initial commit for the configuration package
0 parents  commit bc7d00a

19 files changed

+4382
-0
lines changed

.bash_profile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
alias composer='docker-compose exec sh composer'
2+
alias infection='docker-compose exec sh-xdebug vendor/bin/infection'
3+
alias phpspec='docker-compose exec sh-xdebug vendor/bin/phpspec'
4+
alias phpstan='docker-compose exec sh vendor/bin/phpstan'
5+
alias phpunit='docker-compose exec sh-xdebug vendor/bin/phpunit'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
allow_url_include=1
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
allow_url_include=1
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
allow_url_include=1
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
allow_url_include=1

.env.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
COMPOSER_GITHUB_TOKEN=changeme

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.env
2+
.idea/
3+
vendor/
4+
!.idea/runConfigurations

.phpunit.xml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
4+
<phpunit
5+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6+
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/5.7/phpunit.xsd"
7+
backupGlobals="false"
8+
backupStaticAttributes="false"
9+
bootstrap="vendor/autoload.php"
10+
cacheTokens="true"
11+
stopOnError="false"
12+
stopOnFailure="false"
13+
stopOnWarning="false"
14+
stopOnIncomplete="false"
15+
stopOnRisky="false"
16+
stopOnSkipped="true"
17+
failOnRisky="true"
18+
failOnWarning="true"
19+
beStrictAboutChangesToGlobalState="true"
20+
beStrictAboutOutputDuringTests="true"
21+
beStrictAboutResourceUsageDuringSmallTests="true"
22+
beStrictAboutTestsThatDoNotTestAnything="true"
23+
beStrictAboutTodoAnnotatedTests="true"
24+
beStrictAboutCoversAnnotation="true"
25+
enforceTimeLimit="true"
26+
verbose="true">
27+
28+
<testsuites>
29+
<testsuite name="unit">
30+
<directory>unit/</directory>
31+
<exclude>vendor/</exclude>
32+
</testsuite>
33+
<testsuite name="functional">
34+
<directory>functional/</directory>
35+
<exclude>vendor/</exclude>
36+
</testsuite>
37+
</testsuites>
38+
<php>
39+
<ini name="error_reporting" value="-1"/>
40+
<ini name="memory_limit" value="-1"/>
41+
</php>
42+
<listeners>
43+
<listener class="JohnKary\PHPUnit\Listener\SpeedTrapListener">
44+
<arguments>
45+
<array>
46+
<element key="slowThreshold">
47+
<integer>1000</integer>
48+
</element>
49+
</array>
50+
</arguments>
51+
</listener>
52+
<listener class="MyBuilder\PhpunitAccelerator\TestListener"/>
53+
</listeners>
54+
</phpunit>

ObjectSpaghettiMapper.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace Foo;
4+
5+
final class ObjectSpaghettiMapper implements \Kiboko\Component\ETL\FastMap\Contracts\CompiledMapperInterface
6+
{
7+
public function __invoke($input, $output = null)
8+
{
9+
return $output;
10+
}
11+
}

composer.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"name": "php-etl/fast-map-config",
3+
"description": "This library implements the Extract-Transform-Load pattern asynchronously in PHP with the help of iterators and generators",
4+
"type": "library",
5+
"license": "MIT",
6+
"authors": [
7+
{
8+
"name": "Kiboko SAS",
9+
"homepage": "http://kiboko.fr"
10+
},
11+
{
12+
"name": "Grégory Planchat",
13+
"email": "[email protected]"
14+
}
15+
],
16+
"minimum-stability": "dev",
17+
"require": {
18+
"php": "^7.2",
19+
"php-etl/fast-map": "dev-feature/oroplatform-3.1-compatibility",
20+
"symfony/expression-language": "^3.4",
21+
"symfony/property-access": "^3.4"
22+
},
23+
"require-dev": {
24+
"phpspec/phpspec": "^5.1",
25+
"phpunit/phpunit": "^7.0",
26+
"johnkary/phpunit-speedtrap": "^3.1@dev",
27+
"mybuilder/phpunit-accelerator": "dev-master",
28+
"phpstan/phpstan": "^0.12.0@dev",
29+
"infection/infection": "dev-master",
30+
"friends-of-phpspec/phpspec-code-coverage": "^4.0@dev"
31+
},
32+
"autoload": {
33+
"psr-4": {
34+
"Kiboko\\Component\\ETL\\Config\\": "src/"
35+
}
36+
},
37+
"autoload-dev": {
38+
"psr-4": {
39+
"spec\\Kiboko\\Component\\ETL\\Config\\": "spec/",
40+
"unit\\Kiboko\\Component\\ETL\\Config\\": "unit/",
41+
"functional\\Kiboko\\Component\\ETL\\Config\\": "functional/"
42+
}
43+
},
44+
"extra": {
45+
"branch-alias": {
46+
"dev-master": "1.0.x-dev"
47+
}
48+
}
49+
}

0 commit comments

Comments
 (0)