Skip to content
This repository was archived by the owner on Dec 26, 2023. It is now read-only.

Commit 6bdf67c

Browse files
author
Petr Knap
committed
Fully separated development and production version
2 parents 456442c + 66a7248 commit 6bdf67c

File tree

3 files changed

+14
-15
lines changed

3 files changed

+14
-15
lines changed

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/tests export-ignore
2+
/.gitattributes export-ignore
3+
/.gitignore export-ignore
4+
/phpunit.xml export-ignore
5+
/VERSIONING.md export-ignore

README.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -134,21 +134,10 @@ if (date('w') == DayOfWeekEnum::FRIDAY()->getValue()) {
134134

135135
## How to install
136136

137-
Run `composer require petrknap/php-enum` or merge this JSON code with your project `composer.json` file manually and run `composer install`. Instead of `dev-master` you can use [one of released versions].
138-
139-
```json
140-
{
141-
"require": {
142-
"petrknap/php-enum": "dev-master"
143-
}
144-
}
145-
```
146-
147-
Or manually clone this repository via `git clone https://github.com/petrknap/php-enum.git` or download [this repository as ZIP] and extract files into your project.
137+
Run `composer require petrknap/php-enum` in your project directory. Or manually clone this repository via `git clone https://github.com/petrknap/php-enum.git`. Or download [this repository as ZIP] and extract files into your project.
148138

149139

150140

151141
[Petr Knap]:http://petrknap.cz/
152142
[Enumerated type - Wikipedia, The Free Encyclopedia]:https://en.wikipedia.org/w/index.php?title=Enumerated_type&oldid=701057934
153-
[one of released versions]:https://github.com/petrknap/php-enum/releases
154143
[this repository as ZIP]:https://github.com/petrknap/php-enum/archive/master.zip

composer.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@
1414
"config": {
1515
"preferred-install": "dist",
1616
"platform": {
17-
"php": "5.3.3"
17+
"php": "5.3.3",
18+
"ext-dom": true
1819
}
1920
},
2021
"require": {
2122
"php": ">=5.3.3"
2223
},
2324
"require-dev": {
24-
"phpunit/phpunit": "4.*"
25+
"phpunit/phpunit": "^4.8"
2526
},
2627
"scripts": {
2728
"tests/": [
@@ -33,7 +34,11 @@
3334
},
3435
"autoload": {
3536
"psr-4": {
36-
"PetrKnap\\Php\\Enum\\": "src/Enum",
37+
"PetrKnap\\Php\\Enum\\": "src/Enum"
38+
}
39+
},
40+
"autoload-dev": {
41+
"psr-4": {
3742
"PetrKnap\\Php\\Enum\\Test\\": "tests/Enum"
3843
}
3944
}

0 commit comments

Comments
 (0)