Download the PHP package charsen/moo-scaffold without Composer

On this page you can find all versions of the php package charsen/moo-scaffold. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package moo-scaffold

Laravel Scaffold

Dev Installing

Intro

“约定大于配置” 、“以机械化代替手工化作业”

支持多语言,默认 {en, zh-CN}

待补充... (可先按下面流程操作体验)

create new laravel

修改配置 .env

  1. 开发域名
  2. 数据库配置 (需要手动先创建数据库)

通过 composer 安装

通过命令行看是否安装成功 Scaffold

看到结果中有 scaffold , moo:api ... 等就是已经安装成功

初始化开发者信息(自己)及初始化目录

发布配置文件 及 前端公共资源包

创建一个模块的 schema 文件

将会生成 schema 文件 + ./scaffold/database/<module_name>.yaml

设计模块下的数据表,- 具体说明详见 demo:

docs/schema_demo.yaml

创建数据迁移文件

创建模型文件

前置动作:再 DataBaseSeeder.php 中加入 //:auto_insert_code_here::do_not_delete ,一遍生成代码时

设置 cors 跨域设置

修改 config/cors.php 加入 后台路径

路由设置

注册新方法 iResource

添加 routeiResource 方法,于 app/Providers/RouteServiceProvider.php 文件中:

配置 admin 路由对应的中件间

app/Http/Kernel.php 中添加

注册 admin 路由配置文件

app/Providers/RouteServiceProvider.php 文件中,添加:

创建控制器

基础控制器支持自定义,可修改 config/scaffold.php 中的配置;

执行命令生成接口对应的配置文件

生成接口测试 yaml 文件,后续调整 controller 时,若有删减会提示需要手动去掉 yaml 中对应的 action ,若有增加则会自动追加到 yaml 文件。

PS1:

PS2:

更新 i18n 文件

快速导航


All versions of moo-scaffold with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/framework Version ^10.10
brick/varexporter Version ^0.5.0
symfony/yaml Version ^6.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package charsen/moo-scaffold contains the following files

Loading the files please wait ....