alablaster/architect 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

alablaster/architect

Composer 安装命令:

composer require alablaster/architect

包简介

A scaffolding utility for Laravel

README 文档

README

pipeline status coverage report

An application scaffolding utility.

What it is

This package is designed to scaffoled your appliation based on simple YAML file. Most settings are overwriteable, but everything comes with a default, allowing for rapid prototyping of an application.

For example, once you've defined an entity with its key, such as Family/Parent, Architect will now know its namespace is Family, its name is Parent, its table name is parents, and assume it should have the fields, 'id', 'name', 'created_at', and 'updated_at'. When you build your foundation, Architect will be able to create not just the model, with mass assignable fields, but also create the migration, store and update requests, and model factory. All from two words.

Versions and Laravel Support

ReleaseDateLaravelTag
Beta 0.26-1-2021v.8.00.2
Beta 0.120-11-2020v.8.00.1.3

Beta Cautions

This is a Beta release, mainly because it is the very first version of this package, so your feedback is much appreciated. Please create an issue in on GitLab for bugs that are discovered.

There remain several undocumented features in the latest release. While some do work, they are not fully tested, and may have gaps that are not yet implemented.

While this package is still in a beta form it, it actually never will be 'used in production,' rather it is a utility for helping you build your project faster. So, any errors in the way Architect does build your application will hopefully come out early on in your development. My recomendation would be to git commit before you run Architect for the first time, so you can better see what files have been created and if they fit with your needs. If they do, then you can continue to develop your application without fear of any beta bugs getting into your system.

How to Install

In a fresh installation of Laravel, run the following.

composer install-dev Alablaster/Architect;

Next publish the vendor files:

php artisan vendor:publish --provider="Vendor\Alablaster\ArchitectServiceProvider"

Next to generate your blueprints files, blueprint.yaml in the project's root directory run:

php artisan architect:blueprints

How to use it

Open the blueprint.yaml file in your route folder. It has been seeded with a few simple examples of how to design an application. The file is broken down into several top level domains including entities and relationships,

With in each of these you can define an object with a 'key'. Based on that key, several default values are assumed, and but can then be overwitten by passing the name of that setting, and a new value.

To learn what options you have, please visit the docs at https://laravel-architect.readthedocs.io/en/latest/

Once you have edited the blueprints for your project, you can build it using the following command

php artisan architect:foundation

Change Log

Current

  • Create API scaffolding from the entity definition
  • Add method to entity to define which of the files will be made. A default for the application can be set in the config.
  • Added support for json resources
  • Allow placeholders to chain filters

0.2 (6-1-2021)

  • Create Livewire 'Directory' route type
  • Added output to track which files have been created and better errors
  • Create new StubBuilder which more cleanly creates files
  • Add route model binding to site maps
  • Refactor the WebSiteBuilder to generate routes based on the updated definition style as defined in the documentation.

0.1.4 (22-12-2020)

  • Fixed a bug with the required request rule
  • Improved indentations for request rules
  • Introduced web vs. api based routing, though the API portion isn't yet implemented.

0.1.3 (20-12-2020)

  • Fixed formatting error in Factories
  • Added support for ignoring fields in a factory

0.1.2 (18-12-2020)

  • Added default fakers for most field types. If the field type is unsupported, it will not have a faker value at all.
  • Fixed a variety of errors in the relationship migration which adds a foreign key for many to many relationships.

alablaster/architect 适用场景与选型建议

alablaster/architect 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 22 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 11 月 05 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 alablaster/architect 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 alablaster/architect 我们能提供哪些服务?
定制开发 / 二次开发

基于 alablaster/architect 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-11-05