Giter Site home page Giter Site logo

lyapi's Introduction

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.5:增加单独删除缓存的函数、优先输出参数

  • Core V1.5.3:增加视图类、init、after函数

  • Core V1.5.2:修复Linux命名空间区分大小写问题

  • 框架更新请前往update.txt查看更新

拓展类库

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 或 加群反馈

lyapi's People

Contributors

mrxiaozhuox avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.