Skip to content

Commit

Permalink
readme and base files
Browse files Browse the repository at this point in the history
  • Loading branch information
frank-q committed Jun 16, 2019
1 parent 3b17dca commit 9884259
Show file tree
Hide file tree
Showing 9 changed files with 118 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coverage_clover: clover.xml
json_path: coveralls.json
11 changes: 11 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/.gitattributes export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/grumphp.yml export-ignore
/docs/ export-ignore
/phpcs.xml.dist export-ignore
/tests/ export-ignore
/.gitignore export-ignore
/README.md export-ignore
/CHANGELOG.md export-ignore
/CONTRIBUTING.md export-ignore
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
.idea
vendor
/vendor/
composer.lock
.phpunit.result.cache
clover.xml
coveralls.json
.env
!.gitkeep
25 changes: 25 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
language: php

php:
- 7.2
- 7.3
- nightly

matrix:
allow_failures:
- php: nightly

before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction

script:
- vendor/bin/grumphp run
- vendor/bin/phpunit tests --coverage-clover clover.xml

after_success:
- travis_retry php vendor/bin/php-coveralls

notifications:
email:
on_success: never
Empty file added CHANGELOG.md
Empty file.
21 changes: 21 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Contributing

We welcome contributions.

We accept contributions via pull requests on [Github](https://github.com/qlimix/dependency-container-pimple).

## Pull Requests

- [Qlimix/code-standard](https://github.com/qlimix/code-standard)

- Use the least possible magic (not __get() etc)

- Tests are required to ensure the quality of the code base

- Document changes in the CHANGELOG.md and relevant other doc files

- Use semantic versioning ([SemVer v2.0.0](http://semver.org/))

- Create feature branches, create a new branch for each feature

- Be respectful to other contributors
19 changes: 19 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) 2019 Frank Naber

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# dependency-container-pimple

[![Travis CI](https://api.travis-ci.org/qlimix/dependency-container-pimple.svg?branch=master)](https://travis-ci.org/qlimix/dependency-container-pimple)
[![Coveralls](https://img.shields.io/coveralls/github/qlimix/dependency-container-pimple.svg)](https://coveralls.io/github/qlimix/dependency-container-pimple)
[![Packagist](https://img.shields.io/packagist/v/qlimix/dependency-container-pimple.svg)](https://packagist.org/packages/qlimix/dependency-container-pimple)
[![MIT License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/qlimix/dependency-container-pimple/blob/master/LICENSE)

Dependency registry implemented with Pimple

## Install

Using Composer:

~~~
$ composer require qlimix/dependency-container-pimple
~~~

## Testing
To run all unit tests locally with PHPUnit:

~~~
$ vendor/bin/phpunit
~~~

## Quality
To ensure code quality run grumphp which will run all tools:

~~~
$ vendor/bin/grumphp run
~~~

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
}
],
"require": {
"php": ">=7.2",
"qlimix/dependency-container": "^1.0",
"pimple/pimple": "^3.2"
},
Expand Down

0 comments on commit 9884259

Please sign in to comment.