-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 79b5c49
Showing
16 changed files
with
934 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# hidev internals | ||
.hidev/composer.json | ||
.hidev/composer.lock | ||
.hidev/vendor | ||
|
||
# IDE & OS files | ||
.*.swp | ||
.DS_Store | ||
.buildpath | ||
.idea | ||
.project | ||
.settings | ||
Thumbs.db | ||
nbproject | ||
|
||
# php-cs-fixer cache | ||
.php_cs.cache | ||
|
||
# vendor dirs | ||
vendor | ||
|
||
# composer lock files | ||
composer.lock | ||
|
||
# phpunit generated files | ||
coverage.clover | ||
|
||
# PHARs | ||
composer.phar | ||
php-cs-fixer.phar | ||
phpunit-skelgen.phar | ||
phpunit.phar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
hiqdev/composer-config-plugin commits history | ||
--------------------------------------------- | ||
|
||
## 0.1.1 2016-05-11 | ||
|
||
- Fixed: process root package in the last | ||
- 09a97bf 2016-05-11 process root package in the last (sol@hiqdev.com) | ||
|
||
## 0.1.0 2016-04-30 | ||
|
||
- Added creating `vendor/hiqddev/aliases.php` with all found aliases | ||
- 7797466 2016-04-30 csfixed (sol@hiqdev.com) | ||
- e8b5ec4 2016-04-30 renamed `require` to `plugins` (sol@hiqdev.com) | ||
- ee4a3bc 2016-04-30 + creating `vendor/hiqddev/aliases.php` with all aliases (sol@hiqdev.com) | ||
|
||
## 0.0.9 2016-04-15 | ||
|
||
- Removed writing common config | ||
- 4d1db04 2016-04-15 removed writing common-config (sol@hiqdev.com) | ||
- e7072d3 2016-04-15 changed to `common-config` <- `common` (sol@hiqdev.com) | ||
|
||
## 0.0.8 2016-04-15 | ||
|
||
- c1ca12b 2016-04-15 changed package processing condition (sol@hiqdev.com) | ||
|
||
## 0.0.7 2016-04-15 | ||
|
||
- Changed to not touch yii2-composer | ||
- 7fd7dac 2016-04-15 don't touch yii2-composer (sol@hiqdev.com) | ||
|
||
## 0.0.6 2016-04-13 | ||
|
||
- Changed to create separate manageable configs | ||
- 3722bb3 2016-04-13 improved package description (sol@hiqdev.com) | ||
- 9209cbb 2016-04-13 aliases put to `common.php` file (sol@hiqdev.com) | ||
- 5e93ea3 2016-04-13 REDONE to create separate manageable configs (sol@hiqdev.com) | ||
|
||
## 0.0.5 2016-03-30 | ||
|
||
- Changed `yii2-extraconfig` to `extension-config` | ||
- c47dc8f 2016-03-30 + mergeConfig (sol@hiqdev.com) | ||
- 2f03857 2016-03-30 redoing `yii2-extraconfig` to `extension-config` (sol@hiqdev.com) | ||
- a935f20 2016-03-21 trying empty original yii2 `extensions.php` file (sol@hiqdev.com) | ||
|
||
## 0.0.4 2016-03-11 | ||
|
||
- Added processing packages that have extraconfig option | ||
- 006c65f 2016-03-11 rehideved (sol@hiqdev.com) | ||
- 1a949c3 2016-03-11 + process packages that have extraconfig option (sol@hiqdev.com) | ||
- de3f3fa 2016-01-15 fixed tests (sol@hiqdev.com) | ||
|
||
## 0.0.3 2016-01-15 | ||
|
||
- Fixed bug | ||
- 75c9cbf 2016-01-14 fixed stupid typo (sol@hiqdev.com) | ||
|
||
## 0.0.2 2016-01-14 | ||
|
||
- Fixed PHP 5.5 compatibility | ||
- 2b22620 2016-01-14 fixed for PHP 5.5 compatibility (sol@hiqdev.com) | ||
|
||
## 0.0.1 2016-01-14 | ||
|
||
- Added basics | ||
- 71100f2 2016-01-06 fixed (sol@hiqdev.com) | ||
- 8ef495a 2016-01-06 dropped old bootstrap support (sol@hiqdev.com) | ||
- ed7d8b7 2016-01-06 fixes (sol@hiqdev.com) | ||
- c1490d8 2016-01-06 + root package processing and `BASE_DIR_ALIAS` (sol@hiqdev.com) | ||
- 0a48dee 2016-01-06 looks working (sol@hiqdev.com) | ||
- 96e736f 2016-01-06 adding extraconfig (sol@hiqdev.com) | ||
- 03dc968 2016-01-05 fixed (sol@hiqdev.com) | ||
- e38ce2a 2016-01-05 inited (sol@hiqdev.com) | ||
|
||
## Development started 2016-01-05 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package: | ||
type: composer-plugin | ||
name: composer-config-plugin | ||
title: Composer plugin for config assembling | ||
headline: Composer Config Plugin | ||
keywords: composer, config, assembling, plugin | ||
namespace: hiqdev\ComposerConfigPlugin | ||
description: | | ||
This [Composer](https://getcomposer.org/) plugin that provides assembling of configs | ||
and thus providing extendable plugin system. | ||
- scans installed packages for extra `config-plugin` option in their `composer.json` | ||
- collects and writes params file | ||
- collects and writes config files | ||
plugins: | ||
hiqdev/hidev-php: "*" | ||
hiqdev/hidev-vendor: "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?php | ||
|
||
$header = <<<EOF | ||
Composer plugin for config assembling | ||
@link https://github.com/hiqdev/composer-config-plugin | ||
@package composer-config-plugin | ||
@license BSD-3-Clause | ||
@copyright Copyright (c) 2016, HiQDev (http://hiqdev.com/) | ||
EOF; | ||
|
||
Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header); | ||
|
||
return Symfony\CS\Config\Config::create() | ||
->setUsingCache(true) | ||
->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL) | ||
->fixers([ | ||
'-long_array_syntax', /// Arrays should use the long syntax | ||
'-php4_constructor', /// Convert PHP4-style constructors to __construct. Warning! This could change code behavior | ||
'-phpdoc_var_to_type', /// @var should always be written as @type | ||
'-align_double_arrow', /// Align double arrow symbols in consecutive lines | ||
'-unalign_double_arrow', /// Unalign double arrow symbols in consecutive lines | ||
'-align_equals', /// Align equals symbols in consecutive lines | ||
'-unalign_equals', /// Unalign equals symbols in consecutive lines | ||
'-blankline_after_open_tag', /// Ensure there is no code on the same line as the PHP open tag and it is followed by a blankline | ||
'-phpdoc_no_empty_return', /// @return void and @return null annotations should be omitted from phpdocs | ||
'-empty_return', /// A return statement wishing to return nothing should be simply "return" | ||
'-return', /// An empty line feed should precede a return statement | ||
'-phpdoc_params', /// All items of the @param, @throws, @return, @var, and @type phpdoc tags must be aligned vertically | ||
'-phpdoc_scalar', /// Scalar types should always be written in the same form. "int", not "integer"; "bool", not "boolean" | ||
'-phpdoc_separation', /// Annotations of a different type are separated by a single blank line | ||
'-phpdoc_to_comment', /// Docblocks should only be used on structural elements | ||
'header_comment', /// Add, replace or remove header comment | ||
'concat_with_spaces', /// Concatenation should be used with at least one whitespace around | ||
'ereg_to_preg', /// Replace deprecated ereg regular expression functions with preg. Warning! This could change code behavior | ||
'multiline_spaces_before_semicolon', /// Multi-line whitespace before closing semicolon are prohibited | ||
'newline_after_open_tag', /// Ensure there is no code on the same line as the PHP open tag | ||
'single_blank_line_before_namespace', /// There should be no blank lines before a namespace declaration | ||
'ordered_use', /// Ordering use statements | ||
'phpdoc_order', /// Annotations in phpdocs should be ordered so that @param come first, then @throws, then @return | ||
'pre_increment', /// Pre incrementation/decrementation should be used if possible | ||
'short_array_syntax', /// PHP arrays should use the PHP 5.4 short-syntax | ||
'strict', /// Comparison should be strict. Warning! This could change code behavior | ||
'strict_param', /// Functions should be used with $strict param. Warning! This could change code behavior | ||
]) | ||
->finder( | ||
Symfony\CS\Finder\DefaultFinder::create() | ||
->in(__DIR__) | ||
->notPath('vendor') | ||
->notPath('runtime') | ||
->notPath('web/assets') | ||
->notPath('tests/unit/UnitTester.php') | ||
) | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
checks: | ||
php: | ||
code_rating: true | ||
duplication: true | ||
tools: | ||
php_code_coverage: | ||
enabled: true | ||
external_code_coverage: | ||
timeout: 600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
language: php | ||
php: | ||
- 5.5 | ||
- 5.6 | ||
- 7 | ||
- hhvm | ||
matrix: | ||
allow_failures: | ||
- | ||
php: hhvm | ||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
before_install: | ||
- 'composer self-update' | ||
- 'composer --version' | ||
- 'wget http://hiqdev.com/hidev/hidev.phar -O hidev.phar && chmod a+x hidev.phar' | ||
- './hidev.phar --version' | ||
- './hidev.phar travis/before_install' | ||
sudo: false | ||
install: | ||
- './hidev.phar travis/install' | ||
script: | ||
- './hidev.phar travis/script' | ||
after_script: | ||
- './hidev.phar travis/after_script' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
hiqdev/composer-config-plugin changelog | ||
--------------------------------------- | ||
|
||
## 0.1.1 2016-05-11 | ||
|
||
- Fixed: process root package in the last | ||
|
||
## 0.1.0 2016-04-30 | ||
|
||
- Added creating `vendor/hiqddev/aliases.php` with all found aliases | ||
|
||
## 0.0.9 2016-04-15 | ||
|
||
- Removed writing common config | ||
|
||
## 0.0.8 2016-04-15 | ||
|
||
|
||
## 0.0.7 2016-04-15 | ||
|
||
- Changed to not touch yii2-composer | ||
|
||
## 0.0.6 2016-04-13 | ||
|
||
- Changed to create separate manageable configs | ||
|
||
## 0.0.5 2016-03-30 | ||
|
||
- Changed `yii2-extraconfig` to `extension-config` | ||
|
||
## 0.0.4 2016-03-11 | ||
|
||
- Added processing packages that have extraconfig option | ||
|
||
## 0.0.3 2016-01-15 | ||
|
||
- Fixed bug | ||
|
||
## 0.0.2 2016-01-14 | ||
|
||
- Fixed PHP 5.5 compatibility | ||
|
||
## 0.0.1 2016-01-14 | ||
|
||
- Added basics | ||
|
||
## Development started 2016-01-05 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Copyright © 2016, HiQDev (http://hiqdev.com/) | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions | ||
are met: | ||
|
||
* Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
* Redistributions in binary form must reproduce the above copyright | ||
notice, this list of conditions and the following disclaimer in | ||
the documentation and/or other materials provided with the | ||
distribution. | ||
* Neither the name of HiQDev nor the names of its | ||
contributors may be used to endorse or promote products derived | ||
from this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | ||
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | ||
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, | ||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN | ||
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
Composer Config Plugin | ||
====================== | ||
|
||
**Composer plugin for config assembling** | ||
|
||
[![Latest Stable Version](https://poser.pugx.org/hiqdev/composer-config-plugin/v/stable)](https://packagist.org/packages/hiqdev/composer-config-plugin) | ||
[![Total Downloads](https://poser.pugx.org/hiqdev/composer-config-plugin/downloads)](https://packagist.org/packages/hiqdev/composer-config-plugin) | ||
[![Build Status](https://img.shields.io/travis/hiqdev/composer-config-plugin.svg)](https://travis-ci.org/hiqdev/composer-config-plugin) | ||
[![Scrutinizer Code Coverage](https://img.shields.io/scrutinizer/coverage/g/hiqdev/composer-config-plugin.svg)](https://scrutinizer-ci.com/g/hiqdev/composer-config-plugin/) | ||
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/hiqdev/composer-config-plugin.svg)](https://scrutinizer-ci.com/g/hiqdev/composer-config-plugin/) | ||
[![Dependency Status](https://www.versioneye.com/php/hiqdev:composer-config-plugin/dev-master/badge.svg)](https://www.versioneye.com/php/hiqdev:composer-config-plugin/dev-master) | ||
|
||
This [Composer](https://getcomposer.org/) plugin that provides assembling of configs | ||
and thus providing extendable plugin system. | ||
|
||
- scans installed packages for extra `config-plugin` option in their `composer.json` | ||
- collects and writes params files | ||
- collects and writes config files | ||
|
||
## Installation | ||
|
||
The preferred way to install this composer-plugin is through [composer](http://getcomposer.org/download/). | ||
|
||
Either run | ||
|
||
```sh | ||
php composer.phar require "hiqdev/composer-config-plugin" | ||
``` | ||
|
||
or add | ||
|
||
```json | ||
"hiqdev/composer-config-plugin": "*" | ||
``` | ||
|
||
to the require section of your composer.json. | ||
|
||
## License | ||
|
||
This project is released under the terms of the BSD-3-Clause [license](LICENSE). | ||
Read more [here](http://choosealicense.com/licenses/bsd-3-clause). | ||
|
||
Copyright © 2016, HiQDev (http://hiqdev.com/) |
Oops, something went wrong.