https://github.com/yiisoft/yii-gii
Yii code generator extension
https://github.com/yiisoft/yii-gii
code-generator gii hacktoberfest yii3
Last synced: about 1 month ago
JSON representation
Yii code generator extension
- Host: GitHub
- URL: https://github.com/yiisoft/yii-gii
- Owner: yiisoft
- License: bsd-3-clause
- Created: 2018-08-02T15:59:20.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-11T14:49:43.000Z (7 months ago)
- Last Synced: 2024-10-29T14:35:38.578Z (7 months ago)
- Topics: code-generator, gii, hacktoberfest, yii3
- Language: PHP
- Homepage: https://www.yiiframework.com/
- Size: 622 KB
- Stars: 33
- Watchers: 24
- Forks: 19
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
Gii Extension for Yii
[](https://packagist.org/packages/yiisoft/yii-gii)
[](https://packagist.org/packages/yiisoft/yii-gii)
[](https://packagist.org/packages/rossaddison/yii-auth-client)
[](https://packagist.org/packages/rossaddison/yii-auth-client)
[](https://github.com/yiisoft/yii-gii/actions/workflows/build.yml)
[](https://codecov.io/gh/yiisoft/yii-gii)
[](https://dashboard.stryker-mutator.io/reports/github.com/yiisoft/yii-gii/master)
[](https://github.com/yiisoft/yii-gii/actions?query=workflow%3A%22static+analysis%22)This extension provides a Web-based code generator, called Gii, for [Yii framework](https://www.yiiframework.com) applications.
You can use Gii to quickly generate models, forms, modules, CRUD, etc.## Requirements
- PHP 8.1 or higher.
## Installation
The package could be installed with [Composer](https://getcomposer.org):
```shell
composer require yiisoft/yii-gii
```## General usage
Once the extension is installed, simply modify your application configuration as follows:
```php
return [
'bootstrap' => ['gii'],
'modules' => [
'gii' => [
'class' => Yiisoft\Yii\Gii\Gii::class,
],
// ...
],
// ...
];
```You can then access Gii through the following URL:
```text
http://localhost/path/to/index.php?r=gii
```or if you have enabled pretty URLs, you may use the following URL:
```text
http://localhost/path/to/index.php/gii
```Using the same configuration for your console application, you will also be able to access Gii via
command line as follows,```shell
# change path to your application's base path
cd path/to/AppBasePath# show help information about Gii
yii help gii# show help information about the model generator in Gii
yii help gii/model# generate City model from city table
yii gii/model --tableName=city --modelClass=City
```## Documentation
- Guide: [English](docs/guide/en/README.md), [Português - Brasil](docs/guide/pt-BR/README.md), [Русский](docs/guide/ru/README.md), [日本語](docs/guide/ja/README.md), [中国人](docs/guide/zh-CN/README.md)
- [Internals](docs/internals.md)If you need help or have a question, the [Yii Forum](https://forum.yiiframework.com/c/yii-3-0/63) is a good place for that.
You may also check out other [Yii Community Resources](https://www.yiiframework.com/community).## License
The Gii Extension for Yii is free software. It is released under the terms of the BSD License.
Please see [`LICENSE`](./LICENSE.md) for more information.Maintained by [Yii Software](https://www.yiiframework.com/).
## Support the project
[](https://opencollective.com/yiisoft)
## Follow updates
[](https://www.yiiframework.com/)
[](https://twitter.com/yiiframework)
[](https://t.me/yii3en)
[](https://www.facebook.com/groups/yiitalk)
[](https://yiiframework.com/go/slack)