Download the PHP package callmecsx/mvcs without Composer

On this page you can find all versions of the php package callmecsx/mvcs. 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 mvcs

介绍

本项目为基于 laravel 框架开发的快速代码生成器

English Introduction

使用步骤

第零步:安装包及依赖

composer require callmecsx/mvcs

第一步: 在config/app.php 的 providers 添加 provider(5.5以上版本跳过此步)

Callmecsx\Mvcs\MvcsServiceProvider::class

第二步: 发布 MVCS 模板和配置

php artisan vendor:publish --provider="Callmecsx\Mvcs\MvcsServiceProvider"\ 选择相应序号发布

第三步:修改config/mvcs.php 及 resource/stubs/

发布成功后,分别出现在config 和 resource 中,内有中文注解。

PS: 所有命令已限制在production环境下执行,

mvcs:make 命令

该命令用来生成模板文件,默认提供了四个模板MVCS

php artisan mvcs:make model {--force=} {--only=} {--connect=} {--style=} {--traits=}

通过该指令,默认将在app下自动生成 controller、validator、model、service 四个文件(或自己定义的任何文件);

如:执行 php artisan mvcs:make account

将生成如下文件并构造好默认方法及数据

app/Http/Controller/AccountController \ app/Models/Account \ app/Validators/AccountValidator \ app/services/AccountService

并按配置生成好路由,若模板无问题,可直接进行调用。

mvcs:append 命令

该命令用来给文件添加扩展代码

php artisan mvcs:append model {--connect=} {--style=} {--traits=} {--only=}

mvcs:make_all 命令

该命令用于将对于数据库中每张表和视图生成一次代码

php artisan mvcs:make_all {--connect=} {--style=} {--y|yes}

mvcs:excel 命令

该命令用于将excel导入成数据库表,支持多sheet

php artisan mvcs:excel {file} {--type=}

示例格式

user 用户表 -
*nickname#string_20#昵称 sex#enum_male_female#性别:男or女 brith#日期#生日
jack ma 1 1980-12-21

示例文件

模板的写法

一个基本模板文件是这样的:controller.stub 但并不限定为php文件,你同样可以写html或vue文件

扩展编写

扩展文件写法如下

编写新的模板文件后,须将其在 config 文件中定义

配置编写

更新

License

Callmecsx mvcs is open-sourced software licensed under the MIT license.


All versions of mvcs with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
illuminate/support Version >=5.5
illuminate/validation Version >=5.5
illuminate/filesystem Version >=5.5
illuminate/console Version >=5.5
phpoffice/phpspreadsheet Version ^1.16
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 callmecsx/mvcs contains the following files

Loading the files please wait ....