Companies Home Search Profile

Build a Modern REST API with PHP 8

Focused View

Pierre-Henry Soria

17:03:38

53 View
  • 1 - 1 PHP API from scratch.mp4
    01:21
  • 2 - 2 PHP in 2023.mp4
    04:05
  • 3 - 3 JWT Token with RESTFul API.mp4
    05:26
  • 4 - 4 Install Composer Firebase PHP JWT.mp4
    05:58
  • 5 - 5 Create your first file.mp4
    04:46
  • 6 - 6 Include files and composer autoloader.mp4
    05:25
  • 7 - 7 Creating endpoints in our PHP service.mp4
    01:44
  • 8 - 8 PHP 81 User Composer requirements.mp4
    07:53
  • 9 - 9 if needed Upgrade your PHP version to correct one.mp4
    03:15
  • 10 - 10 Use an API client Insomnia Postman.mp4
    02:16
  • 11 - 11 HTTP methods for RESTful API architecture CRUD.mp4
    03:32
  • 12 - 12 Implement User class.mp4
    03:06
  • 13 - 13 Helpers and Headers.mp4
    09:07
  • 14 - 14 Add namespace and composer autoload.mp4
    03:00
  • 15 - 15 Implementing your first API Routes.mp4
    09:44
  • 16 - 16 Implement match and enum PHP 80 and 81.mp4
    13:24
  • 17 - 17 Completing user routes and handle requests.mp4
    21:37
  • 18 - 18 Read the API payload body data and that it from the backend server.mp4
    09:28
  • 19 - 19 Validate endpoints.mp4
    27:04
  • 20 - 20 Add missing arguments.mp4
    03:28
  • 21 - 21 Initialize Git.mp4
    06:10
  • 22 - 22 Add justhttpstatuscodes and phphttpresponseheader packages.mp4
    15:13
  • 23 - 23 Save our code on a Git hosting platform GitHub.mp4
    04:36
  • 24 - 24 Refactor the payload validation.mp4
    32:28
  • 25 - 25 Add support for generating UUID GUID.mp4
    05:15
  • 26 - 26 Setup ORM RedBeanPHP and MySQL on development machine.mp4
    34:41
  • 27 - 27 Handle exceptions beautifully and convert into JSON format.mp4
    12:56
  • 28 - 28 Setup a local Apache Server.mp4
    20:26
  • 29 - 29 Set a default response on index root request.mp4
    11:56
  • 30 - 30 Rewrite URLs to beautiful friendly ones.mp4
    16:50
  • 31 - 31 Lets use the RedBeanPHP ORM in our API.mp4
    59:26
  • 32 - 32 Secure RedBeanPHP.mp4
    30:37
  • 33 - 33 Codebase Quick Cleanup.mp4
    07:25
  • 34 - 34 Retrieve a user from the database with RedBeanPHP.mp4
    22:15
  • 35 - 35 Retrieve all users from the database with RedBeanPHP.mp4
    10:41
  • 36 - 36 Remove an existing user from the database with RedBean PHP.mp4
    28:42
  • 37 - 37 Update a saved user in the database.mp4
    56:31
  • 38 - 38 Refactor PHP enum in userroutes.mp4
    09:43
  • 39 - 39 Send proper HTTP status codes for each API endpoint.mp4
    14:40
  • 40 - 40 Clean Code Write selfdocumenting code instead of comments.mp4
    03:51
  • 41 - Lets create the Food Item.mp4
    48:27
  • 42 - 42 Validate the received HTTP methods for API endpoints.mp4
    40:12
  • 43 - 43 Make sure a user has a unique email save and encrypt password.mp4
    23:45
  • 44 - 44 Optional Move hashpassword to its own function.mp4
    08:11
  • 45 - 45 Login a user.mp4
    43:32
  • 46 - 46 Store the JWT expiry time into ENV variable.mp4
    11:02
  • 47 - 47 Refactoring Implement UserEntity into User Data Access Layer.mp4
    01:14:59
  • 48 - 48 Refactoring Create FoodEntity to build a food product.mp4
    52:31
  • 49 - 49 Store JWT token into database table.mp4
    40:57
  • 50 - 50 Store user JWT token and last activity into the database.mp4
    18:12
  • 51 - 51 Good practices and enhancements.mp4
    25:36
  • 52 - 52 Start writing your unit tests Setup and configure PHPUnit.mp4
    14:35
  • 53 - 53 Add your unit tests Part 1 User Entity.mp4
    26:19
  • 54 - 54 Add your unit tests Part 2.mp4
    18:20
  • 55 - 55 Add CI GitHub workflows pipeline.mp4
    12:10
  • 56 - 56 Whats next Build your frontend.mp4
    10:57
  • 57 - 57 Architecture Diagram Backend and Frontend.mp4
    03:52
  • 58 - Diagram Example of a PHP REST API architecture.html
  • 59 - Final Source Code and GitHub Repository.html
  • 59 - php-api-source-code.zip
  • 60 - Follow Me Around for more.html
  • 61 - External resources.html
  • 62 - Online PHP 82 Sandbox.html
  • Description


    Build from scratch a clean PHP 8.2 backend API based on scalable and powerful N-Tier architecture

    What You'll Learn?


    • Build a robust and professional-grade RESTful PHP API
    • Be able to create a solid PHP API application from scratch
    • Concepts of REST APIs and why they are essential in modern web development
    • Database integration and ORM (Object Relational Mapping)
    • Be familiar with the PHP dependency manager
    • Use various packages to speed up the software development time
    • Best practices while creating an API with PHP (the hidden parts)
    • Best practices behind designing and implementing an API with PHP, including endpoints, HTTP methods and data validation
    • API error handling and security measures
    • Learn the essential newest features any advanced PHP engineers must use such as `match`, `enum`, arrow functions
    • Rewrite API URLs to friendly readable names (with Apache 2.4)

    Who is this for?


  • Anyone who needs to build a REST API from scratch with PHP
  • Anyone seeking to build a real-world PHP API, from start to end
  • Anyone wishing to level up their skills in building complex PHP API applications
  • Anyone looking to work with PHP 8 for Web development
  • Level up your skillset and confidence in PHP / OOP for building complex applications (e.g. APIs)
  • Anyone looking to build an API from the very beginning to the end, including clean code, good practices and design patterns
  • What You Need to Know?


  • Some knowledge of PHP
  • Some knowledge of HTML/CSS/JavaScript
  • A code editor/IDE (PHPStorm, Visual Studio Code, Sublime, TextMate)
  • More details


    Description

    Are you eager to master the art of building professional and efficient REST APIs using the latest features of PHP 8? Look no further! This comprehensive Udemy course will equip you with all the necessary skills and knowledge to create robust n-tier RESTful APIs using PHP 8.2.


    Whether you are a seasoned PHP developer or a beginner looking to dive into API development, this course is designed to cater to your needs. Through a hands-on approach, you'll learn step-by-step how to design, build, and secure a fully functional REST API from scratch.


    Starting with the fundamentals, you'll gain a solid understanding of the REST architectural style and its principles. You'll explore the HTTP protocol and learn how to leverage its methods and status codes to create API endpoints that adhere to industry standards.


    As you progress, you'll delve into the world of PHP 8, discovering its latest features and enhancements that make API development more streamlined and efficient. You'll learn how to set up your development environment, configure PHP for optimal performance, and harness the power of the PHP 8 syntax (such as the `match` expression, the PHP 8.1 `enums`, and so much more!).


    Throughout the course, you'll work on real-world projects, allowing you to apply your knowledge to practical scenarios. You'll learn how to handle authentication and authorization, implement CRUD operations, handle error responses, and optimize your API for scalability and performance.


    Moreover, you'll explore best practices and design patterns for building clean, maintainable, and testable code. You'll become familiar with popular PHP frameworks and libraries that simplify the API development process, such as Laravel, Lumen, and Slim.


    In addition to these frameworks, you'll also utilize essential Composer packages like RedBean and DotEnv PHP. RedBean provides an easy-to-use ORM (Object-Relational Mapping) solution for database management, while DotEnv PHP allows you to manage environment variables effortlessly, enhancing the security and portability of your API.


    By the end of this course, you'll have a solid foundation in creating RESTful APIs using PHP 8 and be ready to tackle complex API projects with confidence. Whether you're building APIs for mobile applications, web services, or IoT devices, this course will empower you to unleash the full potential of PHP 8 for API development.


    Enrol the course now and embark on a journey to become a proficient REST API developer with PHP 8!

    Who this course is for:

    • Anyone who needs to build a REST API from scratch with PHP
    • Anyone seeking to build a real-world PHP API, from start to end
    • Anyone wishing to level up their skills in building complex PHP API applications
    • Anyone looking to work with PHP 8 for Web development
    • Level up your skillset and confidence in PHP / OOP for building complex applications (e.g. APIs)
    • Anyone looking to build an API from the very beginning to the end, including clean code, good practices and design patterns

    User Reviews
    Rating
    0
    0
    0
    0
    0
    average 0
    Total votes0
    Focused display
    Category
    Pierre-Henry Soria
    Pierre-Henry Soria
    Instructor's Courses
    I’m Pierre-Henry Soria. A super passionate and enthusiastic software engineer.Entrepreneur and Web developer for 12 years. I just love it so much!I've been freelancing for over 5 years and worked in various tech companies and startups around the world (such as the UK, Ireland, New Zealand, and Australia).I'm always thirsty to learn and undertake new challenges and eager to share my knowledge with other passionate people, just like you :-)Happy Coding!
    Students take courses primarily to improve job-related skills.Some courses generate credit toward technical certification. Udemy has made a special effort to attract corporate trainers seeking to create coursework for employees of their company.
    • language english
    • Training sessions 57
    • duration 17:03:38
    • Release Date 2023/09/09

    Courses related to PHP

    Subtitle
    A Web Designers Guide to the WebP Image Format
    TutsPlusA Web Designers Guide to the WebP Image Format
    32:33
    English subtitles
    06/08/2023
    Subtitle
    Practice It: PHP with MySQL

    Courses related to REST API