Giter VIP home page Giter VIP logo

apivialaravel's Introduction

以 Laravel 框架为基础搭建 Restful Api

目的:以后如果要使用的话可以直接拿来用

Laravel 版本
    Laravel Framework version 5.1.26 (LTS)

构建一个以 laravel 为基础的 restful api 基础程序,包括:
1 集成 oauth2
2 自定义异常处理,抛异常,返回 json
3 客户端校验通过控制器去校验,而不是通过传统的通过模型
4 增加中文语音包(校验错误提示, oauth2 校验错误提示)

依赖

// 集成 oauth2 的包
"lucadegasperi/oauth2-server-laravel": "5.0.*"
// mongodb 数据库
"jenssegers/mongodb": "2.2.*"
// 增加验证码
"mews/captcha": "^2.1"

apivialaravel's People

Contributors

safarishi avatar

Watchers

 avatar  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.