承接 cadot-eu/base 相关项目开发

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

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

cadot-eu/base

Composer 安装命令:

composer create-project cadot-eu/base

包简介

Template Symfony moderne avec dashboard automatique, prêt à l'emploi, pour démarrer rapidement vos nouveaux projets avec une base solide et personnalisable.

README 文档

README

This repository is a modern Symfony project template, ready to use, with an automatic dashboard to quickly start your new projects.

Main Features

  • Built-in automatic admin dashboard
  • Simple dashboard configuration: just add a method in your entities
  • Command-line tool to help with dashboard setup and updates
  • Customizable Symfony base
  • Ready-to-develop project structure

Automatic Dashboard and Entity Management

The admin dashboard is generated automatically from your entities using the dedicated command:

php bin/console app:configure-cruds

This command scans your entities and configures the necessary CRUDs for the admin panel. It helps you install, update, or reconfigure the dashboard easily.

cruds() Method in Your Entities

To customize the dashboard behavior, simply add a public static cruds() method in each entity:

public static function cruds(): array
{
    return [
        // Example:
        'fields' => ['name', 'email', 'createdAt'],
        'labels' => ['name' => 'Name', 'email' => 'E-mail'],
        // ...
    ];
}

No extra configuration is needed: the dashboard adapts automatically to your entities. This makes dashboard setup and maintenance extremely simple.

Security and Role Management

Dashboard routes are protected by default:

  • /admin is accessible only to users with the ROLE_ADMIN role.
  • /superadmin (if used) is reserved for ROLE_SUPERADMIN.

The security configuration is already set in config/security.yaml: just assign roles to your users, no need to change code or routes.

Creating Secured Controllers

To add an admin controller, simply create it with a route starting with /admin:

#[Route('/admin/my-module', name: 'admin_my_module')]

It will automatically be protected by the role system.

Fixtures for Fast Prototyping

Fixtures are provided to pre-fill the database with sample data and speed up development:

php bin/console doctrine:fixtures:load

Docker & Development Environment

The project uses an optimized Docker image, automatically generated via generate_docker_image_symfony. The compose.yaml file is ready to launch the full environment (PHP, PostgreSQL, etc.):

docker compose up -d

Project Repository

https://github.com/cadot-eu/base

Usage with Composer

To create a new project based on this template:

composer create-project cadot-eu/base your-project-name --repository='{"type":"vcs","url":"git@github.com:cadot-eu/base.git"}' dev-main

Customization

  • Edit configuration files as needed.
  • See the Symfony documentation for more options.

License

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固