Skip to content

Commit ad8add5

Browse files
ISSUE-1: Added default repository files
0 parents  commit ad8add5

File tree

7 files changed

+152
-0
lines changed

7 files changed

+152
-0
lines changed

.codeclimate.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
engines:
2+
duplication:
3+
enabled: true
4+
config:
5+
languages:
6+
php:
7+
markdownlint:
8+
enabled: true
9+
phpcodesniffer:
10+
enabled: true
11+
phpmd:
12+
enabled: true
13+
14+
ratings:
15+
paths:
16+
- "**.md"
17+
- "**.php"

.gitignore

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

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
language: php
2+
3+
php:
4+
- '5.3'
5+
- '5.4'
6+
- '5.5'
7+
- '5.6'
8+
9+
install:
10+
- composer install
11+
12+
script:
13+
- vendor/bin/phpunit
14+
15+
after_success:
16+
- bash <(curl -s https://codecov.io/bash) -f build/logs/clover.xml
17+
- vendor/bin/test-reporter

LICENSE

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

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Symfony Add-on Transformers
2+
3+
[![Latest Stable Version](https://poser.pugx.org/darkwebdesign/symfony-addon-transformers/v/stable?format=flat)](https://packagist.org/packages/darkwebdesign/symfony-addon-transformers)
4+
[![Total Downloads](https://poser.pugx.org/darkwebdesign/symfony-addon-transformers/downloads?format=flat)](https://packagist.org/packages/darkwebdesign/symfony-addon-transformers)
5+
[![License](https://poser.pugx.org/darkwebdesign/symfony-addon-transformers/license?format=flat)](https://packagist.org/packages/darkwebdesign/symfony-addon-transformers)
6+
7+
[![Build Status](https://travis-ci.org/darkwebdesign/symfony-addon-transformers.svg?branch=2.3)](https://travis-ci.org/darkwebdesign/symfony-addon-transformers?branch=2.3)
8+
[![Coverage Status](https://codecov.io/gh/darkwebdesign/symfony-addon-transformers/branch/2.3/graph/badge.svg)](https://codecov.io/gh/darkwebdesign/symfony-addon-transformers)
9+
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%205.3-blue.svg)](https://php.net/)
10+
[![Minimum Symfony Version](https://img.shields.io/badge/symfony-%3E%3D%202.3-green.svg)](https://symfony.com/)
11+
12+
Symfony Add-on Transformers is a collection of extra Symfony data transformers that you can use in your Symfony
13+
applications.
14+
15+
Learn more about it in its [documentation](https://github.com/darkwebdesign/symfony-addon-pack/blob/2.3/doc/reference/transformers.md).
16+
17+
## Features
18+
19+
* EntityToIdentifierTransformer, Transforms between an identifier and a Doctrine entity.
20+
21+
## Installing via Composer
22+
23+
```bash
24+
composer require darkwebdesign/symfony-addon-transformers
25+
```
26+
27+
```bash
28+
composer install
29+
```
30+
31+
## License
32+
33+
Symfony Add-on Transformers is licensed under the MIT License - see the `LICENSE` file for details.

composer.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "darkwebdesign/symfony-addon-transformers",
3+
"type": "library",
4+
"description": "Symfony Add-on Transformers",
5+
"keywords": ["symfony", "transformers"],
6+
"homepage": "http://www.darkwebdesign.nl/",
7+
"license": "MIT",
8+
"authors": [
9+
{"name": "Raymond Schouten"}
10+
],
11+
"require": {
12+
"doctrine/common": "^2.2",
13+
"doctrine/orm": "^2.2",
14+
"php": "^5.3.3",
15+
"symfony/form": "2.3.*"
16+
},
17+
"require-dev": {
18+
"codeclimate/php-test-reporter": "^0.3.2",
19+
"phpunit/phpunit": "^4.8"
20+
},
21+
"suggest": {
22+
"darkwebdesign/symfony-addon-pack": "All Symfony add-ons bundled together"
23+
},
24+
"autoload": {
25+
"psr-4": {
26+
"DarkWebDesign\\SymfonyAddon\\Transformer\\": "src/"
27+
}
28+
},
29+
"autoload-dev": {
30+
"psr-4": {
31+
"DarkWebDesign\\SymfonyAddon\\Transformer\\Tests\\": "tests/"
32+
}
33+
}
34+
}

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 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
5+
backupGlobals="false"
6+
bootstrap="vendor/autoload.php"
7+
colors="true"
8+
>
9+
10+
<testsuites>
11+
<testsuite name="DarkWeb Design Symfony Add-on Transformers Test Suite">
12+
<directory>tests</directory>
13+
</testsuite>
14+
</testsuites>
15+
16+
<filter>
17+
<whitelist>
18+
<directory>src</directory>
19+
</whitelist>
20+
</filter>
21+
22+
<logging>
23+
<log type="coverage-html" target="build/coverage" />
24+
<log type="coverage-clover" target="build/logs/clover.xml" />
25+
<log type="coverage-text" target="php://stdout" />
26+
</logging>
27+
28+
</phpunit>

0 commit comments

Comments
 (0)