mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
542a4a9405 | ||
|
|
3d3fe767c4 | ||
|
|
00867c5091 | ||
|
|
14235b58ba | ||
|
|
140acd1eb3 | ||
|
|
4eaca747e7 | ||
|
|
28a11d611c | ||
|
|
df36e050e7 | ||
|
|
ddd558a7d4 | ||
|
|
e31af27c01 | ||
|
|
3bcda8e906 | ||
|
|
1641c50d1d | ||
|
|
afbbdfe437 |
14
README.md
14
README.md
@@ -6,10 +6,22 @@ Common and useful classes, methods, exceptions etc.
|
|||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
|
|
||||||
|
In your `composer.json` add address of repository into `repositories` section:
|
||||||
|
|
||||||
|
```json
|
||||||
|
"repositories": [
|
||||||
|
(...)
|
||||||
|
{
|
||||||
|
"type": "vcs",
|
||||||
|
"url": "https://github.com/wiosna-dev/common-library"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
```
|
||||||
|
|
||||||
Run [Composer](https://getcomposer.org) to install this package in your project:
|
Run [Composer](https://getcomposer.org) to install this package in your project:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
composer require meritoo/common-library
|
composer require wiosna-dev/common-library
|
||||||
```
|
```
|
||||||
|
|
||||||
> [How to install Composer?](https://getcomposer.org/download)
|
> [How to install Composer?](https://getcomposer.org/download)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "meritoo/common-library",
|
"name": "wiosna-dev/common-library",
|
||||||
"description": "Useful classes, methods, extensions etc.",
|
"description": "Useful classes, methods, extensions etc.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"authors": [
|
"authors": [
|
||||||
@@ -10,20 +10,19 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
|
"php": ">=5.6",
|
||||||
"ext-dom": "*",
|
"ext-dom": "*",
|
||||||
"ext-fileinfo": "*",
|
"ext-fileinfo": "*",
|
||||||
"ext-json": "*",
|
"ext-json": "*",
|
||||||
"ext-simplexml": "*",
|
"ext-simplexml": "*",
|
||||||
"php": ">=5.6",
|
|
||||||
"ext-intl": "*",
|
"ext-intl": "*",
|
||||||
"ext-pcre": "*",
|
"ext-pcre": "*",
|
||||||
"doctrine/orm": "^2.5",
|
"doctrine/orm": "^2.16",
|
||||||
"gedmo/doctrine-extensions": "^2.4"
|
"gedmo/doctrine-extensions": "^2.4 || ^3.11"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"friendsofphp/php-cs-fixer": "^2.2",
|
"friendsofphp/php-cs-fixer": "^2.2",
|
||||||
"pdepend/pdepend": "^2.5",
|
"pdepend/pdepend": "^2.5",
|
||||||
"phploc/phploc": "^2.1",
|
|
||||||
"phpmd/phpmd": "^2.6",
|
"phpmd/phpmd": "^2.6",
|
||||||
"phpunit/phpunit": "^4.8",
|
"phpunit/phpunit": "^4.8",
|
||||||
"sebastian/phpcpd": "^2.0",
|
"sebastian/phpcpd": "^2.0",
|
||||||
|
|||||||
@@ -45,8 +45,7 @@
|
|||||||
depends="check:cs,
|
depends="check:cs,
|
||||||
check:md,
|
check:md,
|
||||||
check:cpd,
|
check:cpd,
|
||||||
check:depend,
|
check:depend"
|
||||||
check:loc"
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- Test target -->
|
<!-- Test target -->
|
||||||
@@ -91,13 +90,6 @@
|
|||||||
</phpdepend>
|
</phpdepend>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- Measure the size and analyzing the structure of a project -->
|
|
||||||
<target name="check:loc" depends="build:prepare">
|
|
||||||
<phploc reportType="txt" reportName="phploc" reportDirectory="${dir.reports}">
|
|
||||||
<fileset refid="sourcecode"/>
|
|
||||||
</phploc>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!-- PHPUnit tests -->
|
<!-- PHPUnit tests -->
|
||||||
<target name="test:phpunit" depends="build:prepare">
|
<target name="test:phpunit" depends="build:prepare">
|
||||||
<exec command="${tests.phpunit.command}" passthru="true"/>
|
<exec command="${tests.phpunit.command}" passthru="true"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user