Skip to content
This repository was archived by the owner on Apr 30, 2019. It is now read-only.

Commit bf49fb4

Browse files
committed
Init repository
0 parents  commit bf49fb4

9 files changed

Lines changed: 195 additions & 0 deletions

File tree

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
; top-most EditorConfig file
2+
root = true
3+
4+
; Unix-style newlines
5+
[*]
6+
end_of_line = lf
7+
charset = utf-8
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.{php,js}]
12+
indent_style = space
13+
indent_size = 4
14+
15+
[*.md]
16+
trim_trailing_whitespace = false

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/.editorconfig export-ignore
2+
/.gitattributes export-ignore
3+
/.gitignore export-ignore
4+
/.php_cs export-ignore
5+
/.travis.yml export-ignore
6+
/phpunit.xml.dist export-ignore
7+
/tests export-ignore

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/vendor
2+
/composer.lock
3+
.php_cs.cache

.php_cs

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
3+
$header = <<<'EOF'
4+
This file is part of the "elao/form-simple-object-mapper" package.
5+
6+
Copyright (C) 2016 Elao
7+
8+
@author Elao <contact@elao.com>
9+
EOF;
10+
11+
$finder = PhpCsFixer\Finder::create()
12+
->in(__DIR__)
13+
;
14+
15+
return PhpCsFixer\Config::create()
16+
->setUsingCache(true)
17+
->setFinder($finder)
18+
->setRules([
19+
'@Symfony' => true,
20+
'psr0' => false,
21+
'concat_without_spaces' => false,
22+
'concat_with_spaces' => true,
23+
'phpdoc_short_description' => false,
24+
'phpdoc_order' => true,
25+
'short_array_syntax' => true,
26+
'ordered_imports' => true,
27+
'simplified_null_return' => false,
28+
'header_comment' => [
29+
'header' => $header,
30+
],
31+
])
32+
;

.travis.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
sudo: false
2+
language: php
3+
4+
branches:
5+
only:
6+
- master
7+
8+
env:
9+
global:
10+
- CHECK_PHP_SYNTAX="no"
11+
- ENABLE_CODE_COVERAGE="no"
12+
- COMPOSER_FLAGS=""
13+
14+
matrix:
15+
fast_finish: true
16+
include:
17+
- php: 5.6
18+
env: COMPOSER_FLAGS="--prefer-lowest"
19+
- php: 7.0
20+
env: ENABLE_CODE_COVERAGE="yes"
21+
- php: 7.1
22+
env: CHECK_PHP_SYNTAX="yes"
23+
24+
cache:
25+
directories:
26+
- $HOME/.composer/cache
27+
28+
before_install:
29+
- if [[ "$ENABLE_CODE_COVERAGE" != "yes" ]]; then phpenv config-rm xdebug.ini || true; fi;
30+
31+
install:
32+
- composer update --prefer-dist --no-interaction --optimize-autoloader --prefer-stable --no-progress $COMPOSER_FLAGS
33+
- if [[ "$ENABLE_CODE_COVERAGE" == "yes" ]]; then composer require --dev satooshi/php-coveralls; fi
34+
35+
script:
36+
- if [[ "$ENABLE_CODE_COVERAGE" == "yes" ]]; then vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml; else vendor/bin/phpunit; fi;
37+
- if [[ "$CHECK_PHP_SYNTAX" == "yes" ]]; then vendor/bin/php-cs-fixer fix --config=.php_cs --dry-run --no-interaction --diff --path-mode=intersection; fi;
38+
39+
after_success:
40+
- if [[ "$ENABLE_CODE_COVERAGE" == "yes" ]]; then php vendor/bin/coveralls -v; fi;

LICENSE

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

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Symfony Form Simple Object Mapper
2+
=================================
3+
4+
[![Build Status](https://img.shields.io/travis/Elao/FormSimpleObjectMapper/master.svg?style=flat-square)](https://travis-ci.org/Elao/FormSimpleObjectMapper)
5+
[![Coveralls](https://img.shields.io/coveralls/Elao/FormSimpleObjectMapper.svg?style=flat-square)](https://coveralls.io/github/Elao/FormSimpleObjectMapper)
6+
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/Elao/FormSimpleObjectMapper.svg?style=flat-square)](https://scrutinizer-ci.com/g/Elao/FormSimpleObjectMapper/?branch=master)
7+
8+
Coming soon...

composer.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "elao/form-simple-object-mapper",
3+
"description": "Ease mapping immutable/value objects to Symfony Forms",
4+
"keywords": ["enum", "symfony", "form", "immutable", "value object", "datamapper"],
5+
"type": "library",
6+
"homepage": "https://github.com/Elao/FormSimpleObjectMapper",
7+
"license": "MIT",
8+
"authors": [
9+
{
10+
"name": "Elao",
11+
"homepage": "http://www.elao.com"
12+
},
13+
{
14+
"name": "Maxime Steinhausser",
15+
"email": "maxime.steinhausser@gmail.com"
16+
}
17+
],
18+
"autoload": {
19+
"psr-4": {
20+
"Elao\\FormSimpleObjectMapper\\": "src/"
21+
}
22+
},
23+
"autoload-dev": {
24+
"psr-4": { "Elao\\FormSimpleObjectMapper\\Tests\\": "tests/" }
25+
},
26+
"prefer-stable": true,
27+
"minimum-stability": "dev",
28+
"require": {
29+
"php": ">=5.6",
30+
"symfony/form": "^2.8|^3.1"
31+
},
32+
"require-dev": {
33+
"friendsofphp/php-cs-fixer": "2.x@dev",
34+
"phpunit/phpunit": "^5.6",
35+
"symfony/phpunit-bridge": "^2.8|^3.1"
36+
},
37+
"extra": {
38+
"branch-alias": {
39+
"dev-master": "1.0.x-dev"
40+
}
41+
}
42+
}

phpunit.xml.dist

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<phpunit backupGlobals="false"
4+
backupStaticAttributes="false"
5+
colors="true"
6+
convertErrorsToExceptions="true"
7+
convertNoticesToExceptions="true"
8+
convertWarningsToExceptions="true"
9+
processIsolation="false"
10+
stopOnFailure="false"
11+
syntaxCheck="false"
12+
>
13+
<testsuites>
14+
<testsuite name="Elao Symfony Form Simple Object Mapper Test Suite">
15+
<directory>./tests/</directory>
16+
</testsuite>
17+
</testsuites>
18+
19+
<filter>
20+
<whitelist>
21+
<directory>./src/</directory>
22+
<exclude>
23+
<directory>./tests</directory>
24+
<directory>./vendor</directory>
25+
</exclude>
26+
</whitelist>
27+
</filter>
28+
</phpunit>

0 commit comments

Comments
 (0)