承接 mamazu/sulu-maker 相关项目开发

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

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

mamazu/sulu-maker

最新稳定版本:1.0.1

Composer 安装命令:

composer require mamazu/sulu-maker

包简介

Package to generate configuration and boilerplate code in Sulu

README 文档

README

This package adds code generators for Sulu configurations and other features of Sulu to get you started quicker. This bundle is based on the Symfony maker bundle

How to install

Installing it with composer is very easy:

composer require --dev friendsofsulu/maker-bundle

Example Usage

Create an entity (either manually or with make:entity).

<?php

declare(strict_types=1);

namespace App\Entity;

class Changelog
{
    public const RESOURCE_KEY = 'changelog';

    public ?int $id = null;
    public string $name = '';
    public string $description = '';
}

Then you can create a list configuration for this entity bin/console make:sulu:list App\\Entity\\Changelog. This will ask for every property if it should be visible and if it is should be searchable. Looking like this: Image

Most of the values have defaults so just hitting enter on most of them works.

Feature List

Here is a list of features this maker provides.

Generating a new page type sulu:make:page-type

You can generate an XML file in the Sulu pages directory and an example template in the Twig directory.

Generating the List XML Configruation make:sulu:list

The basics for this are working. This can't generate a configuration for entities with join columns.

Generating form XML configuration make:sulu:form

TODO

Generating an admin class for an entity sulu:make:admin

Basic generation is working. You can also disable parts of the view generation (generating a view without the edit form).

Generating a controller sulu:make:controller

You can generate a controller with get, delete and update actions or any combination of those. And it even has some helpful tips on avoiding pitfalls with _ in the resource key.

Generate all of the above sulu:make:resource

TODO

Generate a Trash handler sulu:make:trash_handler

Generates a Trash handler with the option to also implement restoring functionality for the resource.

Generate a Sulu fixture sulu:make:fixture

Generates an example fixture to create a Sulu document

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固