Skip to content

Commit 42d60fa

Browse files
committed
initial commit
0 parents  commit 42d60fa

22 files changed

+1834
-0
lines changed

.gitattributes

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Ignore all test and documentation for archive
2+
/.github export-ignore
3+
/.gitattributes export-ignore
4+
/.gitignore export-ignore
5+
/.scrutinizer.yml export-ignore
6+
/.travis.yml export-ignore
7+
/phpunit.xml.dist export-ignore
8+
/tests export-ignore
9+
/docs export-ignore

.github/FUNDING.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# These are supported funding model platforms
2+
3+
github: [klimov-paul]
4+
patreon: klimov_paul

.github/ISSUE_TEMPLATE.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
### What steps will reproduce the problem?
2+
3+
### What is the expected result?
4+
5+
### What do you get instead?
6+
7+
### Additional info
8+
9+
| Q | A
10+
|-----------------------| ---
11+
| This Package Version | 1.?.?
12+
| Yii Framework Version | 1.1.?
13+
| PHP version |
14+
| Operating system |

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
| Q | A
2+
| ------------- | ---
3+
| Is bugfix? | ✔️/❌
4+
| New feature? | ✔️/❌
5+
| Breaks BC? | ✔️/❌
6+
| Tests pass? | ✔️/❌
7+
| Fixed issues | comma-separated list of tickets # fixed by the PR, if any

.github/workflows/build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
phpunit:
7+
name: PHP ${{ matrix.php }} on ${{ matrix.os }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
os: [ubuntu-latest]
13+
php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
19+
- name: Install PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: ${{ matrix.php }}
23+
extensions: mbstring, pdo, sqlite, pdo_sqlite
24+
tools: composer:v2
25+
coverage: none
26+
27+
- name: Install dependencies
28+
run: |
29+
composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
30+
- name: Run unit tests
31+
run: vendor/bin/phpunit --colors=always

.gitignore

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# phpstorm project files
2+
.idea
3+
4+
# netbeans project files
5+
nbproject
6+
7+
# zend studio for eclipse project files
8+
.buildpath
9+
.project
10+
.settings
11+
12+
# windows thumbnail cache
13+
Thumbs.db
14+
15+
# composer vendor dir
16+
/vendor
17+
18+
/composer.lock
19+
20+
# composer itself is not needed
21+
composer.phar
22+
23+
# Mac DS_Store Files
24+
.DS_Store
25+
26+
# phpunit itself is not needed
27+
phpunit.phar
28+
# local phpunit config
29+
/phpunit.xml
30+
# phpunit cache
31+
.phpunit.result.cache
32+
33+
# test runtime files
34+
/.phpunit.cache
35+
/tests/runtime

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Yii1 Application Runtime Configuration extension
2+
================================================
3+
4+
1.0.0 Under Development
5+
-----------------------
6+
7+
- Initial release.

LICENSE.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
This is free software. It is released under the terms of the
2+
following BSD License.
3+
4+
Copyright © 2019 by Illuminatech (https://github.com/illuminatech)
5+
All rights reserved.
6+
7+
Redistribution and use in source and binary forms, with or without
8+
modification, are permitted provided that the following conditions
9+
are met:
10+
11+
* Redistributions of source code must retain the above copyright
12+
notice, this list of conditions and the following disclaimer.
13+
* Redistributions in binary form must reproduce the above copyright
14+
notice, this list of conditions and the following disclaimer in
15+
the documentation and/or other materials provided with the
16+
distribution.
17+
* Neither the name of Illuminatech nor the names of its
18+
contributors may be used to endorse or promote products derived
19+
from this software without specific prior written permission.
20+
21+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24+
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25+
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27+
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30+
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
31+
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32+
POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<p align="center">
2+
<a href="https://github.com/yii1tech" target="_blank">
3+
<img src="https://avatars.githubusercontent.com/u/134691944" height="100px">
4+
</a>
5+
<h1 align="center">Application Runtime Configuration Extension for Yii 1</h1>
6+
<br>
7+
</p>
8+
9+
This extension introduces persistent configuration repository for Laravel.
10+
Its usage in particular provides support for application runtime configuration, loading config from database.
11+
12+
For license information check the [LICENSE](LICENSE.md)-file.
13+
14+
[![Latest Stable Version](https://img.shields.io/packagist/v/yii1tech/config.svg)](https://packagist.org/packages/yii1tech/config)
15+
[![Total Downloads](https://img.shields.io/packagist/dt/yii1tech/config.svg)](https://packagist.org/packages/yii1tech/config)
16+
[![Build Status](https://github.com/yii1tech/config/workflows/build/badge.svg)](https://github.com/yii1tech/config/actions)
17+
18+
19+
Installation
20+
------------
21+
22+
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
23+
24+
Either run
25+
26+
```
27+
php composer.phar require --prefer-dist yii1tech/config
28+
```
29+
30+
or add
31+
32+
```json
33+
"yii1tech/config": "*"
34+
```
35+
36+
to the require section of your composer.json.
37+
38+
39+
Usage
40+
-----
41+
42+
This extension

composer.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name": "yii1tech/config",
3+
"description": "Provides support for Yii2 application runtime configuration",
4+
"keywords": ["yii1", "configuration", "config", "runtime", "persistent", "database"],
5+
"license": "BSD-3-Clause",
6+
"support": {
7+
"issues": "https://github.com/yii1tech/config/issues",
8+
"wiki": "https://github.com/yii1tech/config/wiki",
9+
"source": "https://github.com/yii1tech/config"
10+
},
11+
"authors": [
12+
{
13+
"name": "Paul Klimov",
14+
"email": "[email protected]"
15+
}
16+
],
17+
"require": {
18+
"php": ">=7.1",
19+
"yiisoft/yii": "~1.1.0"
20+
},
21+
"require-dev": {
22+
"phpunit/phpunit": "^6.0 || ^7.0 || ^8.0 || ^9.3 || ^10.0.7"
23+
},
24+
"autoload": {
25+
"psr-4": {
26+
"yii1tech\\config\\": "src"
27+
}
28+
},
29+
"autoload-dev": {
30+
"psr-4": {
31+
"yii1tech\\config\\test\\": "tests"
32+
}
33+
},
34+
"extra": {
35+
"branch-alias": {
36+
"dev-master": "1.0.x-dev"
37+
}
38+
}
39+
}

phpunit.xml.dist

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<phpunit bootstrap="./tests/bootstrap.php"
3+
colors="true"
4+
backupGlobals="false"
5+
backupStaticProperties="false"
6+
processIsolation="false"
7+
cacheDirectory=".phpunit.cache"
8+
stopOnError="false"
9+
stopOnFailure="false">
10+
<testsuites>
11+
<testsuite name="Yii1tech Test Suite">
12+
<directory>./tests</directory>
13+
</testsuite>
14+
</testsuites>
15+
</phpunit>

0 commit comments

Comments
 (0)