plc-xi/core 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

plc-xi/core

Composer 安装命令:

composer create-project plc-xi/core

包简介

Core Module for PLC XI Api Server

README 文档

README

Core Module for onePlace XI Api Server.

How to start locally

  • Enter Projekt directory, run composer install
  • Create config/autoload/local.php
  • Start Dev Server php -S 0.0.0.0:8080 -t public public/index.php
  • The API is now running on localhost:8080
return [
    'db' => [
        'adapters' => [
            'api' => [
                'database' => 'nameOfYourDatabase',
                'driver' => 'PDO_Mysql',
                'username' => 'databaseUser',
                'password' => 'databasePassword',
            ],
        ],
    ],
    'api-tools-mvc-auth' => [
        'authentication' => [
            'adapters' => [
                'api' => [
                    'adapter' => \Laminas\ApiTools\MvcAuth\Authentication\OAuth2Adapter::class,
                    'storage' => [
                        'adapter' => \pdo::class,
                        'dsn' => 'mysql:dbname=nameOfYourDatabase;host=localhost;charset=utf8',
                        'route' => '/oauth',
                        'username' => 'databaseUser',
                        'password' => 'databasePassword',
                    ],
                ],
            ],
        ],
    ],
];

Configure Authentication

  • Insert a new row into oauth_clients table
    • client_id is the username for your client
    • client_secret is the hashed password for your client
      • You can use php .\vendor\laminas-api-tools\api-tools-oauth2\bin\bcrypt.php yourPassword to generate a bcrypt hash

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2022-11-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固