承接 lenra/app 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

lenra/app

最新稳定版本:v1.0.2

Composer 安装命令:

composer require lenra/app

包简介

Lenra's app server lib

README 文档

README

Contributors Forks Stargazers Issues MIT License


App Lib for PHP based projects

This lib integrates all the elements the app needs in order to only keep the views, listeners and resources in the app project.

Report Bug · Request Feature

Usage

To incorporate it into your Lenra app project, simply run the following command:

composer require lenra/app

Lenra API calls

To call a Lenra API from a listener, use the Lenra\App\Api instance provided in the .

You can then create a document using the data API with the following code:

class CustomType extends \Lenra\App\Data {
    public string $value;
    public function __construct(string $value = null) {
        $this->value = $value;
    }
}

$myDoc = $request->api->data()->coll(CustomType::class)->createDoc(new CustomType("Hello world"))->wait();

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please open an issue with the tag "enhancement". Don't forget to give the project a star if you liked it! Thanks again!

Generate components classes

A part of this lib is generated from the Lenra API. To generate the classes, run the following commands:

# Load API
wget https://github.com/lenra-io/api/releases/latest/download/load-api.sh -O - -q | bash
# generate Models
php vendor/bin/jane generate
# generate builder classes
php script/generate-classes.php

Run unit tests

./vendor/bin/phpunit test

(back to top)

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

Contact

Lenra - @lenra_dev - contact@lenra.io

Project Link: https://github.com/lenra-io/app-lib-php

(back to top)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-29