1 Star 0 Fork 29

Admin / LyApi

forked from mr小卓X / LyApi 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

LyAPI

Travis Travis Travis Travis

安装方法

使用Composer构建LyApi项目:

$ composer create-project mrxzx/lyapi

简单Demo

// ./app/api/Demo.php
<?php

namespace APP\api;

use LyApi\core\API;

class Demo extends API{
    public function User(){
        return array(
            'username' => 'mr小卓X',
            'password' => '12345678'
        );
    }
}

运行结果:

{
    "code":"200",
    "data":{
        "username":"mr小卓X",
        "password":"12345678"
    },
    "msg":""
}

图片演示

avatar avatar

在线体验

不想下载?你可以使用在线体验功能!

在线文档

想深入了解LyAPI?快来看看在线文档吧!

最近更新

  • Core V1.5.3:增加视图类、init、after函数
  • Core V1.5.2:修复Linux命名空间区分大小写问题

拓展类库

LyAPI将会不断的更新拓展类库:

类库安装

composer require lyapi\ExtendName

类库使用

所有类库都是放在命名空间: LyApi\extend 下的

参与贡献

  1. Fork代码到你的仓库
  2. 增加功能并自行测试
  3. 发起Pull Requests
  4. 等待管理员审查

开源协议

LyAPI使用MIT协议,更多信息请查看MIT协议官网

联系作者

作者:mr小卓X

Q Q:1373962439

交流群:769094015

GitHub: https://github.com/xiaozhuox/LyApi

已知问题

问题1:Composer创建的项目报错:

解决方法:删除vendor文件夹,重新install即可

问题2:FileCahce和Log无法正常使用:

解决方法:在根目录新建data文件夹,里面再建cahce和log文件夹

如发现更多问题请 发布Issue 或 加群反馈

MIT License Copyright (c) 2018 mrxzx Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

LyAPI是一款轻量级的PHP 接口开发框架,可快速开发出易维护、高性能的API接口。内置缓存、日志、数据库操作、国际化等功能 展开 收起
PHP
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
PHP
1
https://gitee.com/isni_admin/LyApi.git
git@gitee.com:isni_admin/LyApi.git
isni_admin
LyApi
LyApi
master

搜索帮助