escapehither / crud-manager-bundle
该包最新版本(0.4.0)没有可用的许可信息。
symfony 扩展包 CRUD AND API 管理器
0.4.0
2019-01-26 09:19 UTC
Requires
- php: >=5.5.9
- doctrine/doctrine-bundle: ~1.6
- doctrine/doctrine-cache-bundle: ~1.2
- doctrine/orm: ^2.5
- guzzlehttp/guzzle: ^6.2
- lexik/jwt-authentication-bundle: ~2.4
- nelmio/api-doc-bundle: ~2.0|3.0
- stof/doctrine-extensions-bundle: ~1.2
- symfony/dependency-injection: ~3.0|~4.0
- symfony/form: ~3.0|~4.0
- symfony/framework-bundle: ~3.0|~4.0
- symfony/polyfill-apcu: ^1.0
- symfony/serializer: ~3.0|~4.0
- white-october/pagerfanta-bundle: ^1.0
Requires (Dev)
- behat/behat: ^3.3
- behat/mink: ^1.7
- behat/mink-browserkit-driver: ^1.3
- behat/mink-extension: ^2.2
- behat/mink-goutte-driver: ^1.2
- behat/mink-selenium2-driver: ^1.3
- behat/mink-zombie-driver: ^1.4
- behat/symfony2-extension: ^2.1
- behat/web-api-extension: ~1.0@dev
- doctrine/doctrine-fixtures-bundle: ^2.3
- escapestudios/symfony2-coding-standard: ~2.0
- fzaninotto/faker: ^1.8
- symfony/phpunit-bridge: ^3.0
This package is not auto-updated.
Last update: 2024-09-21 13:36:25 UTC
README
步骤 1: 下载包
该包实际上位于私有仓库中。在你的 Composer.json 中添加
{ //.... "repositories": [{ "type": "composer", "url": "https://packages.escapehither.com" }] }
打开命令行,进入你的项目目录,并执行以下命令以下载此包的最新稳定版本
$ composer require escapehither/crud-manager-bundle dev-master
此命令要求你全局安装了 Composer,如 Composer 文档中的安装章节所述。
步骤 2: 启用包
然后,将包添加到你的项目 app/AppKernel.php
文件中已注册的包列表中,以启用它
<?php // app/AppKernel.php // ... class AppKernel extends Kernel { public function registerBundles() { $bundles = array( // ... new EscapeHither\CrudManagerBundle\StarterKitCrudBundle(), new EscapeHither\SecurityManagerBundle\StarterKitSecurityManagerBundle(), new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(), new Knp\Bundle\MenuBundle\KnpMenuBundle(), new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(), new Lexik\Bundle\JWTAuthenticationBundle\LexikJWTAuthenticationBundle(), new Nelmio\ApiDocBundle\NelmioApiDocBundle(), ); // ... } // ... }
步骤 2: 添加配置
-
在
app/config/config.yml
中导入配置文件以进行默认过滤器集配置imports: - { resource: "@EscapeHitherCrudManagerBundle/Resources/config/config.yml" }
-
在
app/config/routing.yml
中导入路由文件escape_hither_crud_manager: resource: "@EscapeHitherCrudManagerBundle/Resources/config/routing.yml" prefix: /
-
添加 jwt 编码器。
mkdir var/jwt openssl genrsa -out var/jwt/private.pem -aes256 4096 openssl rsa -pubout -in var/jwt/private.pem -out var/jwt/public.pem