This repository has been archived by the owner on Jun 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Showing
7 changed files
with
121 additions
and
1 deletion.
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,5 @@ | ||
/vendor | ||
/composer.lock | ||
|
||
|
||
/.php_cs.cache |
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,17 @@ | ||
<?php | ||
|
||
return PhpCsFixer\Config::create() | ||
->setRules([ | ||
'@PSR2' => true, | ||
'array_syntax' => ['syntax' => 'short'], | ||
'general_phpdoc_annotation_remove' => ['annotations' => ['author']], | ||
'header_comment' => [ | ||
'comment_type' => 'PHPDoc', | ||
'header' => <<<COMMENT | ||
@copyright Copyright (c) 2018 Carsten Brandt <mail@cebe.cc> and contributors | ||
@license https://github.com/cebe/yii2-openapi/blob/master/LICENSE | ||
COMMENT | ||
] | ||
]) | ||
; | ||
|
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,12 @@ | ||
language: php | ||
|
||
php: | ||
- '7.1' | ||
- '7.2' | ||
- '7.3' | ||
- nightly | ||
|
||
install: make install | ||
script: | ||
- make test | ||
- if [[ $TRAVIS_PHP_VERSION = "7.3" || $TRAVIS_PHP_VERSION = "nightly" ]]; then true; else make check-style; fi |
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
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,19 @@ | ||
|
||
all: | ||
|
||
check-style: | ||
vendor/bin/php-cs-fixer fix src/ --diff --dry-run | ||
|
||
fix-style: | ||
vendor/bin/indent --tabs composer.json | ||
vendor/bin/indent --spaces .php_cs.dist | ||
vendor/bin/php-cs-fixer fix src/ --diff | ||
|
||
install: | ||
composer install --prefer-dist --no-interaction | ||
|
||
test: | ||
vendor/bin/phpunit | ||
|
||
.PHONY: all check-style fix-style install test | ||
|
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
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,45 @@ | ||
{ | ||
"name": "cebe/yii2-openapi", | ||
"description": "Generate full REST API application from OpenAPI 3 specification.", | ||
"keywords": ["yii2", "rest", "openapi"], | ||
"homepage": "https://github.com/cebe/yii2-openapi#readme", | ||
"type": "library", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Carsten Brandt", | ||
"email": "mail@cebe.cc", | ||
"homepage": "https://cebe.cc/", | ||
"role": "Creator" | ||
} | ||
], | ||
"support": { | ||
"issues": "https://github.com/cebe/yii2-openapi/issues", | ||
"source": "https://github.com/cebe/yii2-openapi" | ||
}, | ||
"require": { | ||
"php": ">=7.1.0", | ||
"cebe/php-openapi": "0.9@dev", | ||
"yiisoft/yii2-gii": "~2.0.0" | ||
}, | ||
"require-dev": { | ||
"cebe/indent": "*", | ||
"friendsofphp/php-cs-fixer": "~2.13.1", | ||
"phpunit/phpunit": "^6.5" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"cebe\\yii2openapi\\": "src/" | ||
} | ||
}, | ||
"config": { | ||
"platform": { | ||
"php": "7.1.3" | ||
} | ||
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "1.0.x-dev" | ||
} | ||
} | ||
} |