Skip to content

Commit

Permalink
Merge pull request #5 from clagiordano/feature/support-yaml
Browse files Browse the repository at this point in the history
Add support for yaml config files
  • Loading branch information
clagiordano authored May 27, 2021
2 parents 5c8ebcc + 4fd2981 commit e846eec
Show file tree
Hide file tree
Showing 13 changed files with 1,144 additions and 201 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,31 @@ jobs:
matrix:
operating-system: [ ubuntu-18.04 ]
php: [ '5.4', '5.5', '5.6', '7.1', '7.2', '7.3', '7.4' ]
name: PHP ${{ matrix.operating-system }} ${{ matrix.php }}
name: PHP ${{ matrix.php }}@${{ matrix.operating-system }}

steps:
- uses: actions/checkout@v2
- uses: nanasess/setup-php@master
- uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php }}
extensions: xdebug

- name: check php version
run: php --version

- name: check composer version
run: composer --version

- name: Validate composer.json and composer.lock
run: composer validate

- name: Install dependencies
run: composer install --prefer-dist --no-progress

# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md

- name: Run test suite
run: ./vendor/bin/phpunit

- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
run: ./vendor/bin/coveralls --coverage_clover=build/logs/clover.xml -v
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
![BuildStatus](https://travis-ci.org/clagiordano/weblibs-configmanager.svg?branch=master) ![License](https://img.shields.io/github/license/clagiordano/weblibs-configmanager.svg)
[![PHP Composer](https://github.com/clagiordano/weblibs-configmanager/actions/workflows/php.yml/badge.svg)](https://github.com/clagiordano/weblibs-configmanager/actions/workflows/php.yml)
[![SymfonyInsight](https://insight.symfony.com/projects/22045de8-2a4d-46fc-9233-4dbb4c407e1f/mini.svg)](https://insight.symfony.com/projects/22045de8-2a4d-46fc-9233-4dbb4c407e1f)

# weblibs-configmanager
weblibs-configmanager is a tool library for easily read and access to php config array file and direct read/write configuration file / object.

[![SensioLabsInsight](https://insight.sensiolabs.com/projects/54c4e80c-ff15-4235-8bec-a4c71bbe3ba5/big.png)](https://insight.sensiolabs.com/projects/54c4e80c-ff15-4235-8bec-a4c71bbe3ba5)

## Why use weblibs-configmanager ?
The purpose of this project is to propose a simple and lightweight library to manage php hierarchical configuration files.

Expand Down
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@
}
},
"require": {
"php": ">=5.4"
"php": ">=5.4",
"symfony/yaml": "^2.8"
},
"require-dev": {
"phpunit/phpunit": "^4.8",
"clagiordano/phpunit-result-printer": "^1"
"clagiordano/phpunit-result-printer": "^1",
"php-coveralls/php-coveralls": "^1.1"
},
"autoload-dev": {
"psr-4": {
Expand Down
Loading

0 comments on commit e846eec

Please sign in to comment.