PHP项目开发库 Alcon

码农软件 · 软件分类 · 常用工具包 · 2019-08-13 18:14:05

软件介绍

Alcon

【简介】 Alcon 是一个PHP项目开发库 (尤其适合Phalcon框架)。

 

【用途】 一个应用开发中可以使用的公用结构,目的是拆分出来便于随时组装。

 

【演示】

composer require farwish/alcon:dev-master

提供状态码:

$status = \Alcon\Supports\Codes::ACTION_SUC;  
$msg = \Alcon\Supports\Codes::get($status);

提供函数:

\Alcon\Supports\Helper::format_date('1234567')

提供Trait:

use \Alcon\Traits\ControllerTrait;
use \Alcon\Traits\ModelTrait;

提供服务层 : 

// 只要继承自 \Alcon\Services\ServiceBase;

提供设计模式 :

$ev = new \Alcon\Design\EventBase();    
$ob = new MyObserver;    
$ev->attach($ob);    
$ev->notify();

提供任务脚本 :

php vendor/farwish/alcon/src/Scripts/produce_all_models.php

 

【目录结构】

```
Design  
    |_ DecoratorBase.php  
    |_ EventBase.php  

Scripts   
    |_ model_header.php   
    |_ produce_all_models.php  

Services(Yar)  
    |_ ServiceBase.php  

Supports  
    |_ Codes.php  
    |_ Helper.php  
    |_ STBase.php  

Traits  
    |_ ControllerTrait.php   
    |_ ModelTrait.php  
    |_ ModelAdvanceTrait.php 
```

 

【应用案例】

alconSeek

 

【维护与使用】

Join Qq Group: 377154148

If you do use this package, please let me know.  

 

【A&Q】

How to install phalcon? you can reference:

1. https://docs.phalconphp.com/en/latest/reference/install.html

2. https://github.com/farwish/delicateShell/tree/master/lnmp

本文地址:https://codercto.com/soft/d/12293.html

Numerical Recipes 3rd Edition

Numerical Recipes 3rd Edition

William H. Press、Saul A. Teukolsky、William T. Vetterling、Brian P. Flannery / Cambridge University Press / 2007-9-6 / GBP 64.99

Do you want easy access to the latest methods in scientific computing? This greatly expanded third edition of Numerical Recipes has it, with wider coverage than ever before, many new, expanded and upd......一起来看看 《Numerical Recipes 3rd Edition》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码