承接 abbadon1334/atk4-symfony-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

abbadon1334/atk4-symfony-bundle

Composer 安装命令:

composer require abbadon1334/atk4-symfony-bundle

包简介

Agile Toolkit 4 Symfony Bundle

README 文档

README

WIP Beta Repository

usage

composer create-project symfony/skeleton:"^6.3.8" my_project_directory
cd my_project_directory

by default symfony sets to stable

composer config minimum-stability dev
composer require abbadon1334/atk4-symfony-bundle:"*"

will add bundle config + bundle files in public folder

in bin/console there is a useful command to rebuild the database during development the rebuild is based on models

bin/console models:rebuild -p src/Models

Atk controllers can be created easy using attribute #[Atk4Controller]

a simple controller can be created in this way:

use Atk4\Symfony\Module\Atk4App; use Atk4\Symfony\Module\Atk4Controller; use Atk4\Symfony\Module\Atk4App; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Atk4\Ui\Header;

#[Atk4Controller] class Homepage extends AbstractController { // Symfony built in injection public function __construct( protected Atk4App $atk4app, protected Security $security ) { }

#[Route('/', name: 'homepage')]
public function index(): Response
{
    $app = $this->atk4app->getApp();

    $app->initLayout([Centered::class]);
    
    Header::addTo($app, ['Demo']);
}

}

统计信息

  • 总下载量: 3.14k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-01-18