Skip to content

Commit 16862ad

Browse files
authored
Update README.md
1 parent b8c1546 commit 16862ad

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ REST API application generator for Yii2, openapi 3.0 YAML -> Yii2.
44

55
Base on [Gii, the Yii Framework Code Generator](https://www.yiiframework.com/extension/yiisoft/yii2-gii).
66

7-
[![Latest Stable Version](https://poser.pugx.org/cebe/yii2-openapi/v/stable)](https://packagist.org/packages/cebe/yii2-openapi)
8-
[![Latest Alpha Version](https://poser.pugx.org/cebe/yii2-openapi/v/unstable)](https://packagist.org/packages/cebe/yii2-openapi)
9-
[![Total Downloads](https://poser.pugx.org/cebe/yii2-openapi/downloads)](https://packagist.org/packages/cebe/yii2-openapi)
10-
[![License](https://poser.pugx.org/cebe/yii2-openapi/license)](https://packagist.org/packages/cebe/yii2-openapi)
11-
![yii2-openapi](https://github.com/cebe/yii2-openapi/workflows/yii2-openapi/badge.svg?branch=wip)
7+
[![Latest Stable Version](https://poser.pugx.org/php-openapi/yii2-openapi/v/stable)](https://packagist.org/packages/php-openapi/yii2-openapi)
8+
[![Latest Alpha Version](https://poser.pugx.org/php-openapi/yii2-openapi/v/unstable)](https://packagist.org/packages/php-openapi/yii2-openapi)
9+
[![Total Downloads](https://poser.pugx.org/php-openapi/yii2-openapi/downloads)](https://packagist.org/packages/php-openapi/yii2-openapi)
10+
[![License](https://poser.pugx.org/php-openapi/yii2-openapi/license)](https://packagist.org/packages/php-openapi/yii2-openapi)
11+
![yii2-openapi](https://github.com/php-openapi/yii2-openapi/workflows/yii2-openapi/badge.svg?branch=wip)
1212

1313
## TLDR; what is this?
1414

1515
A code generator for OpenAPI and Yii Framework based PHP API application.
1616

17-
Input: [OpenAPI 3.0 YAML or JSON](https://github.com/OAI/OpenAPI-Specification#the-openapi-specification) (via [cebe/php-openapi](https://github.com/cebe/php-openapi))
17+
Input: [OpenAPI 3.0 YAML or JSON](https://github.com/OAI/OpenAPI-Specification#the-openapi-specification) (via [cebe/php-openapi](https://github.com/php-openapi/php-openapi))
1818

1919
Output: Yii Framework Application with Controllers, Models, database schema
2020

@@ -36,12 +36,12 @@ Currently available features:
3636

3737
## Install
3838

39-
composer require cebe/yii2-openapi:^2.0@beta
39+
composer require php-openapi/yii2-openapi:^2.0@beta
4040

4141
## Usage
4242

4343
You can use this package in your existing application or start a new project using the
44-
[yii2-app-api](https://github.com/cebe/yii2-app-api) application template.
44+
[yii2-app-api](https://github.com/php-openapi/yii2-app-api) application template.
4545
For usage of the template, see instructions in the template repo readme.
4646

4747
In your existing Yii application config (works for console as well as web):
@@ -76,7 +76,7 @@ return $config;
7676

7777
To use the web generator, open `index.php?r=gii` and select the `REST API Generator`.
7878

79-
On console you can run the generator with `./yii gii/api --openApiPath=@app/openapi.yaml`. Where `@app/openapi.yaml` should be the absolute path to your OpenAPI spec file. This can be JSON as well as YAML (see also [cebe/php-openapi](https://github.com/cebe/php-openapi/) for supported formats).
79+
On console you can run the generator with `./yii gii/api --openApiPath=@app/openapi.yaml`. Where `@app/openapi.yaml` should be the absolute path to your OpenAPI spec file. This can be JSON as well as YAML (see also [php-openapi/php-openapi](https://github.com/php-openapi/php-openapi/) for supported formats).
8080

8181
Run `./yii gii/api --help` for all options. Example: Disable generation of migrations files `./yii gii/api --generateMigrations=0`
8282

0 commit comments

Comments
 (0)