Changes
Title
unchanged
Yii2 RESTful API with OAuth 2.0
Category
unchanged
Tutorials
Yii version
changed
2.0
Tags
changed
REST,yii2, REST, oauth 2.0
Content
changed
![https://cdn.pbrd.co/images/GMN5ROs.jpg](https://cdn.pbrd.co/images/GMN5ROs.jpg "Yii2")
### Overview
This article is for the one’s who is already working with PHP/Yii2 or who wants to quick start developing a RESTful API using Yii2 framework with[...]
Here I’m sharing the Live demo and Source code of a RESTful API with OAuth2 authentication/security developed using Yii2 framework You can use this if you want to quick start developing your own custom RESTful API by skipping 95% of your scratch works. Hopefully this will save lot of your time as this API includes all the basic stuffs you need to get started.
### Developer Dashboard
This API also includes a developer dashboard with the API documentation which is developed in Yii2 framework. This will be useful to manage your developers access to the API documentation.
### Why Yii2?
![Yii2](https://cdn.pbrd.co/images/GMN6b0M.png "Yii2")
It's Fast, It’s Secure and Professional!. Yii comes with rich features: MVC, DAO/ActiveRecord, I18N/L10N, caching, authentication and role-based access control, scaffolding, testing, etc. It can reduce your development time significantly.
### What is a RESTful API?
REST is an architectural style for building APIs. It stands for “Representational State Transfer”. It means when we build an API, we build it in a way that HTTP methods and URIs mean something, and the API has to respond in a way that’s expected.
### Something about OAuth 2.0
The OAuth 2.0 is an authorization framework which enables a third-party application to obtain limited access to an HTTP service.
### DEMO
[http://
yii2-rest.dockerboxes.us](http://yii2-rest.dockerboxes.us "DEMO")
developers.yii2.nintriva.net/](http://developers.yii2.nintriva.net/)
Login: developer/developer
#### Source Code
[https://github.com/sirinibin/Yii2-RESTful-API-with-OAuth2
](https://github.com/sirinibin/Yii2-RESTful-API-with-OAuth2 "Github")
### Official Documentation
Documentation for this RESTful API can be found on the [Yii 2.0 RESTful API with OAuth 2.0 Documentation](http://
yii2-rest.dockerboxes.usdevelopers.yii2.nintriva.net/ "Documentation").
Security Vulnerabilities
If you discover a security vulnerability within this API, please send an e-mail to Sirin k at sirin@nintriva.com. All security vulnerabilities will be promptly addressed.
### Installation instructions
[https://github.com/sirinibin/Yii2-RESTful-API-with-OAuth2](https://github.com/sirinibin/Yii2-RESTful-API-with-OAuth2 "Installation instructions")
# Similar API Implementation in NodeJs,Laravel &GoLang
[Expressjs 4.15/Mysql RESTful API with OAuth2](https://github.com/sirinibin/expressjs-4.14-mysql-with-OAuth2)
[Expressjs 4.15/MongoDb RESTful API with OAuth2](https://github.com/sirinibin/sirinibin-expressjs-4.14-mongodb-RestfulAPI-with-OAuth2)
[Laravel 5.5 Lumen 5.5/Mysql RESTful API with OAuth2](https://github.com/sirinibin/laravel-5.5-lumen-5.5-with-OAuth2)
[GoLang/MongoDb Microservice with OAuth2](https://github.com/sirinibin/golang-microservice-with-oauth2-mongodb)
[Linkedin Post1](https://www.linkedin.com/pulse/quick-launch-express-js-415-nodejs-framework-restful-api-sirin-k/)
[Linkedin Post2](https://www.linkedin.com/pulse/deploy-fully-fledged-golang-micro-service-your-aws-backed-sirin-k/)
Sirin K