Download the PHP package phpno1/architecture without Composer

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

laravel框架开发项目架构扩展包

[![Latest Stable Version](https://poser.pugx.org/phpno1/architecture/v/stable)](https://packagist.org/packages/phpno1/architecture) [![Total Downloads](https://poser.pugx.org/phpno1/architecture/downloads)](https://packagist.org/packages/phpno1/architecture) [![Build Status](https://travis-ci.org/yb19890724/phpno1-architecture.svg?branch=master)](https://travis-ci.org/yb19890724/phpno1-architecture) [![License](https://poser.pugx.org/phpno1/architecture/license)](https://packagist.org/packages/phpno1/architecture)

官方扩展qq群

qq:680531281

功能

项目架构分层,代码生成器,快速进入开发阶段,拆分职责降低耦合。

目录

安装

使用要求

composer

执行以下命令获取包的最新版本:

laravel

生成配置文件

注册到服务容器

说明:用命令生成仓储文件时(phpno1:entity || phpno1:repository),会自动生成ArchitectureServiceProvider文件。

配置

命令

说明:使用命令创建仓储文件时(phpno1:entity和phpno1:repository),会自动绑定接口与实现类关系。

生成组合配置

生成控制器

生成业务处理类

生成扩展全局限制类

生成过滤类

生成模型类

生成服务器提供者,用于接口绑定实体类

生成仓库类

生成校验类

生成响应类

生成种子文件

快速使用

1.执行以下命令:

生成文件 (注:以下命令生成文件路径可以通过配置修改architecture.php)

2.修改代码

1).控制器

2).响应(数据映射)

方法介绍

Phpno1\Repository\Contracts\IRepository;

Phpno1\Repository\Eloquent;

初始化加载

限制条件

编写Criteria类

使用Criteria类

过滤条件

在Repository中配置要过滤和排序的映射字段

编写要过滤的业务

编写要排序的业务

注意:如果你需要字段排序,首先需要在生成的配置文件architecture.php中定义你需要的排序接收参数

在过滤类中必须实现接口 "IOrder"!!!

传递参数进行过滤操作

scope

这里仓库层中的scope方法是兼容laravel模型的scope方法调用

注意如果调用scope方法请注意,必须先调用再执行withCriteria进行过滤

自定义

缓存

使用CacheGenerate的trait特性 用途:当使用redis或memcahce做缓存时,方便做数据缓存操作。当然,您也可以使用Laravel框架提供的Cache。

注意事项


All versions of architecture with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
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 phpno1/architecture contains the following files

Loading the files please wait ....