定制 idtitanium/laravel-api-interface-gen 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

idtitanium/laravel-api-interface-gen

Composer 安装命令:

composer require idtitanium/laravel-api-interface-gen

包简介

A useful artisan command to generate an interface and its repository while building your api

README 文档

README

Build Status GitHub Packagist Version

laravel-api-interface-gen

Provides useful artisan command to help generate repositories and interfaces.

USAGE

  1. Installing To install run composer require idtitanium/laravel-api-interface-gen. Support Laravel version 6.1 or higher. Lower versions might not work so nicely.

  2. Making an Interface When you run php artisan make:interface Book. This will generate two folders (if they don't already exist). One called Repositories and inside it Interfaces. Then, the BookRepostoryInterface will be created inside the Interfaces folder.

  3. Making a Repository when you run php artisan make:repository Book. This will generate a repository class with the Name BookRepository With an assumption that you already have an interface called BookRepositoryInterface.

  4. Making a Repsoitory and Interface. This is the best part of this package. when you run php artisan make:repositoryinterface Book. This creates both the repository and the interface in their respective folders and correct namespaces.

  5. All command will create a RepositoryServiceProvider file, if it doesn't currently exist.

NOTE: This commands currently does not register the service provider in the app config. Also, it creates a service provider wihout the binding of the repository to the interface.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固