Build a REST API using Yii2 PHP Framework

preview_player
Показать описание
In this video, we will build a REST API using Yii2 PHP framework.
If you do not have experience previously working on Yii2 framework, I recommend to check out my "Yii2 Crash course" video before watching this video:

Source Code - (Really appreciate if you give it a star - ★)

Yii2 Advanced template installation and set up virtual hosts on Window and on Linux.

In this video, we are going to build a blog engine REST API using Yii2 PHP framework.
We are going to interact with 2 resources: posts and comments.
We will see how to create endpoints to get, create, update or delete posts and comments.
We will see how to paginate and sort.
We will learn how to enable authentication and authorization so that only authenticated users will be able to create, update or delete posts and comments and we will also see how to restrict access to particular posts so that only owner of the post or comment will be able to update or delete.

We will use postman to make request into our API.

Follow me on social media:
Рекомендации по теме
Комментарии
Автор

Source code link is in the video description.

TheCodeholic
Автор

I have watched this tutorial so many times. Truly worth every single second. Excellent content as always.

agukasian
Автор

Best Yii2 REST API tutorial I ever seen on YouTube! Thank you!

rajaera
Автор

One of the best tutorials I've ever seen!

jhilimoharana
Автор

One of the best tutorials I've ever seen! Great job! Keep it up!
The only thing I would make abit different, instead of using checkAccess function I would use ActiveQuery on the frontend/api level to set the records owner by default, so in the init() function: return => \Yii::$app->user->id]);
And of course it'll be cool to have Vue + yii2 tutorial! Thank you!

lpdrucx
Автор

Hello Zura, you're really amazing. I've been working with Yii2 Framework the last 5 months, thanks to you. I wish God bless you everything good in your life. You're sharing important knowledge totally free and with accuracy. Congrats again!

DelboniTI
Автор

Cool, i would love to see your short tutorial working with two separate themes, front end (website) and backend (admin theme) with yii2.

aabi
Автор

If you dig deeper you will realize that Yii2 is the best PHP framework.

LearnProgrammingInMalayalam
Автор

Muito obrigado por esse conteúdo! Estou muito empolgado com esse framework porque no meu novo trabalho é usado. Parabéns pelo trabalho e por produzir conteúdo relevante para o Youtube!!!

yancoltro
Автор

I have finished the guide so happy with it thanks

Akeshma
Автор

Thx, this was very helpfull.
I was searching for a long time to find a tuturial that explains to to make sub-endpoints like "/users/5/comments"

petergunold
Автор

thank you very much, this vido is the most helpful among other videos regarding rest api. Thank you very much one more time

edu-flex
Автор

this tutorial is awesome!!!! I love it so much!

phamduytan
Автор

Best tutorial of Yii2 Rest Api.
In this video, it's explained the Rest API in Server side.
Hope in the next video will be show "how to use REST api with YII2 as client side",
Thanks so much for this tutorial video.

tukijo
Автор

A good way to explain all the flow of rest api.... Thanks a lot....

shahnawazz
Автор

Another usefull and great video. Thanks a lot!

magda
Автор

Hey brother thanks for such great tutorial. Explanation and everything was just perfect.

afaq
Автор

Very nice and comprehensive tutorial. Please give a hint to HttpBasicAuth from database. Also make more tutorials like this which covers Rate limit and IP/domain restrictions in API.

WaseemMemon
Автор

Great video, thank you very much for your efforts

ahlatli
Автор

Great tutorial! Migrations would be really helpful tutorial

pahuana
welcome to shbcf.ru