定制 melisplatform/melis-platform-framework-lumen 二次开发

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

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

melisplatform/melis-platform-framework-lumen

Composer 安装命令:

composer require melisplatform/melis-platform-framework-lumen

包简介

Melis Platform Framework Lumen module

README 文档

README

This module brings the Lumen microframework inside melis platform and has a ServiceProvider to access all Melis services.

Getting Started

These instructions will guide you to run the lumen microframework inside melis platform.

Prerequisites

This module requires melisplatform/melis-core and laravel/lumen-framework in order to have this module running. It will automatically be done when using composer.

Installing

composer require melisplatform/melis-platform-framework-lumen

Service Providers

To use the service provider just add the line below in the \bootstrap\app.php file in the "Register Service Providers" area.

$app->register(\MelisPlatformFrameworkLumen\Providers\ZendServiceProvider::class)

You can also use the class MelisServiceProvder anywhere in the app in getting melis services.

Usage

Here's an example of direct calling of a Model from melis-core inside a lumen controller.

$melisCoreLangTable = app('ZendServiceManager)->get('MelisCoreTableLang');
$resultArray        = $mesliCoreLangTable->fetchAll()->toArray();

Example of using the class MelisServiceProvider

use MelisPlatformFrameworkLumen\MelisServiceProvider;

$melisServiceProvider = new MelisServiceProvider();
$melisCoreLangTable   = $melisServiceProvider->getService('MelisCoreTableLang');
$resultArray          = $melisCoreLangTable->fetchAll()->toArray();

Addtional info :

  1. In getting a melis service/table, just look for module.config.php in every melisplatform module. Look for the service_manager key, you can use array keys under aliases or under factories.

    Example : MelisCoreTableLang

  2. You can find the file location according to its current value.

    Example : MelisCoreTableLang => 'MelisCore\Model\Tables\MelisLangTable'

    File location : melis-core/src/Model/Tables/MelisLangTable.php , in here you can see all the available functions.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the OSL-3.0 License - see the LICENSE.md file for details

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2019-08-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固