Skip to content

Commit 192d3e3

Browse files
committed
Initial commit of timezone validator
1 parent d2d2fab commit 192d3e3

File tree

8 files changed

+2224
-0
lines changed

8 files changed

+2224
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
vendor
2+
.idea

.styleci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
preset: psr2

circle.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
machine:
2+
pre:
3+
- sudo apt-get update; USE_PRECOMPILE=true sudo -E circleci-install php 7.1.0
4+
timezone:
5+
Europe/London
6+
php:
7+
version: 7.1.0
8+
9+
dependencies:
10+
pre:
11+
- rm /opt/circleci/php/$(phpenv global)/etc/conf.d/xdebug.ini
12+
override:
13+
- composer install
14+
15+
test:
16+
override:
17+
- mkdir -p $CIRCLE_TEST_REPORTS/phpunit
18+
- vendor/bin/phpunit --log-junit $CIRCLE_TEST_REPORTS/phpunit/junit.xml tests

composer.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "laravel-validation-rules/valid-timezone",
3+
"description": "Validate that a given timezone is valid.",
4+
"type": "library",
5+
"keywords": [ "laravel", "validation" ],
6+
"license": "Apache-2.0",
7+
"authors": [
8+
{
9+
"name": "Scott Wilcox",
10+
"email": "scott@dor.ky",
11+
"homepage": "http://dor.ky"
12+
}
13+
],
14+
"require": {
15+
"illuminate/validation": "^5.5",
16+
"illuminate/translation": "^5.5"
17+
},
18+
"require-dev": {
19+
"phpunit/phpunit": "~5.7"
20+
},
21+
"autoload": {
22+
"psr-4": {
23+
"App\\Rules\\": "src/"
24+
}
25+
},
26+
"autoload-dev": {
27+
"psr-4": {
28+
"Tests\\": "tests"
29+
}
30+
},
31+
"scripts": {
32+
"test": "phpunit --colors=always"
33+
}
34+
}

0 commit comments

Comments
 (0)