Build from Scratch a Modern REST API with PHP 8
Build from Scratch a Modern REST API with PHP 8, available at $44.99, has an average rating of 4.18, with 67 lectures, based on 174 reviews, and has 40423 subscribers.
You will learn about 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) Professionally handling project dependencies in PHP using a package 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) This course is ideal for individuals who are Anyone who needs to build a REST API from scratch with PHP or Anyone seeking to build a real-world PHP API, from start to end or Anyone wishing to level up their skills in building complex PHP API applications or Anyone looking to work with PHP 8 for Web development or Level up your skillset and confidence in PHP / OOP for building complex applications (e.g. APIs) or Anyone looking to build an API from the very beginning to the end, including clean code, good practices and design patterns It is particularly useful for Anyone who needs to build a REST API from scratch with PHP or Anyone seeking to build a real-world PHP API, from start to end or Anyone wishing to level up their skills in building complex PHP API applications or Anyone looking to work with PHP 8 for Web development or Level up your skillset and confidence in PHP / OOP for building complex applications (e.g. APIs) or Anyone looking to build an API from the very beginning to the end, including clean code, good practices and design patterns.
Enroll now: Build from Scratch a Modern REST API with PHP 8
Summary
Title: Build from Scratch a Modern REST API with PHP 8
Price: $44.99
Average Rating: 4.18
Number of Lectures: 67
Number of Published Lectures: 67
Number of Curriculum Items: 67
Number of Published Curriculum Objects: 67
Original Price: $54.99
Quality Status: approved
Status: Live
What You Will 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)
- Professionally handling project dependencies in PHP using a package 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 Should Attend
- 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
Target Audiences
- 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
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 all the latest PHP 8 features!
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!
Course Curriculum
Chapter 1: Fundation
Lecture 1: 1. PHP API from scratch
Lecture 2: 2. PHP in 2023
Lecture 3: 3. JWT Token within RESTFul API – Explanation
Chapter 2: Building the backend API
Lecture 1: 4. Install Composer & PHP JWT (JSON Web Tokens)
Lecture 2: 5. Create your first file!
Lecture 3: 6. Include files and composer autoloader
Lecture 4: 7. Creating the first endpoints in our service application
Lecture 5: 8. PHP 8.1 User & Composer requirements
Lecture 6: 9. If needed, upgrade your PHP version to correct one
Lecture 7: 10. Use an API client (API clients: Insomnia – Postman)
Lecture 8: 11. HTTP methods for REST API architecture CRUD
Lecture 9: 12. Implement User Class
Lecture 10: 13. Helpers and Headers
Lecture 11: 14. Add namespace and composer autoload
Lecture 12: 15. Implementing your first API Routes
Lecture 13: 16. Implement match and enum PHP 8.0 and 8.1
Lecture 14: Finishing user routes and handling the requests
Lecture 15: 18. Read the API payload data from the backend server
Lecture 16: 19. Validate endpoints
Lecture 17: 20. Implement the missing arguments
Lecture 18: 21. Setup Git project repository
Lecture 19: 22. Add just-http-status-codes and php-http-response-header packages
Lecture 20: 23. Save our code on a Git hosting platform (GitHub)
Lecture 21: 24. Refactoring the payload validation
Lecture 22: 25. Add support for generating UUID (GUID)
Lecture 23: 26. Setup RedBeanPHP ORM, and MySQL on development machine
Lecture 24: 27. Handle exceptions beautifully and convert into JSON format
Chapter 3: Local Apache Server
Lecture 1: 28. Setting up a Local Apache Server
Chapter 4: Avances concerts for the backend API
Lecture 1: 29. Set a default response on index root request
Lecture 2: 30. Rewrite URLs to beautiful friendly ones
Lecture 3: 31. RedBeanPHP ORM in the Specific N-Tier Architecture of our API Application
Lecture 4: 32. Secure RedBeanPHP
Lecture 5: 33. Codebase Quick Cleanup
Lecture 6: 34. Retrieve a user from the database with RedBeanPHP
Lecture 7: 35. Retrieve all users from the database with RedBeanPHP
Lecture 8: 36. Remove an existing user from the database (with RedBean PHP)
Lecture 9: 37. Update a saved user in the database
Lecture 10: 38. Refactor PHP enum in user.routes
Lecture 11: 39. Send proper HTTP status codes for each API endpoint
Lecture 12: 40. Clean Code – Write self-documenting code instead of comments
Lecture 13: Let's create the Food Item
Lecture 14: 42. Validate the received HTTP methods for API endpoints
Lecture 15: 43. Make sure a user has a unique email + save and encrypt password
Lecture 16: 44. Optional – Move hash_password to its own function
Lecture 17: 45. Login a user
Lecture 18: 46. Store the JWT expiry time into ENV variable
Lecture 19: 47. Refactoring – Implement UserEntity into User Data Access Layer
Lecture 20: 48. Refactoring – Create FoodEntity to build a food product
Lecture 21: 49. Store JWT token into database table
Lecture 22: 50. Store user JWT token and last activity into the database
Lecture 23: 51. Good practices and enhancements
Lecture 24: 51.1. Final API refactoring
Chapter 5: Unit Testing
Lecture 1: 52. Start writing your unit tests. Setup and configure PHPUnit
Lecture 2: 53. Add your unit tests – Part 1 (User Entity)
Lecture 3: 54. Add your unit tests – Part 2 (Item Entity)
Lecture 4: 55. Add CI GitHub workflows pipeline
Lecture 5: PHP Unit Testing Libraries
Chapter 6: What about the client? Frontend
Lecture 1: 56. What's next? Build your frontend
Lecture 2: 57. Architecture Diagram – Backend and Frontend
Lecture 3: Diagram – Example of a PHP REST API architecture
Chapter 7: Extra
Lecture 1: 58. Include all your files thanks to Composer!
Lecture 2: 58. Include all your files thanks to Composer
Chapter 8: Source Code / GitHub Repositories
Lecture 1: Final Source Code and GitHub Repository
Chapter 9: Conclusion
Lecture 1: External resources
Lecture 2: Online PHP 8.2 Sandbox
Lecture 3: The apps I use (on macOS) (to work well & fast!)
Lecture 4: Bonus Lecture
Instructors
-
Pierre-Henry Soria
Creative Software Engineer
Rating Distribution
- 1 stars: 6 votes
- 2 stars: 9 votes
- 3 stars: 21 votes
- 4 stars: 47 votes
- 5 stars: 91 votes
Frequently Asked Questions
How long do I have access to the course materials?
You can view and review the lecture materials indefinitely, like an on-demand channel.
Can I take my courses with me wherever I go?
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don’t have an internet connection, some instructors also let their students download course lectures. That’s up to the instructor though, so make sure you get on their good side!
You may also like
- Top 10 Language Learning Courses to Learn in November 2024
- Top 10 Video Editing Courses to Learn in November 2024
- Top 10 Music Production Courses to Learn in November 2024
- Top 10 Animation Courses to Learn in November 2024
- Top 10 Digital Illustration Courses to Learn in November 2024
- Top 10 Renewable Energy Courses to Learn in November 2024
- Top 10 Sustainable Living Courses to Learn in November 2024
- Top 10 Ethical AI Courses to Learn in November 2024
- Top 10 Cybersecurity Fundamentals Courses to Learn in November 2024
- Top 10 Smart Home Technology Courses to Learn in November 2024
- Top 10 Holistic Health Courses to Learn in November 2024
- Top 10 Nutrition And Diet Planning Courses to Learn in November 2024
- Top 10 Yoga Instruction Courses to Learn in November 2024
- Top 10 Stress Management Courses to Learn in November 2024
- Top 10 Mindfulness Meditation Courses to Learn in November 2024
- Top 10 Life Coaching Courses to Learn in November 2024
- Top 10 Career Development Courses to Learn in November 2024
- Top 10 Relationship Building Courses to Learn in November 2024
- Top 10 Parenting Skills Courses to Learn in November 2024
- Top 10 Home Improvement Courses to Learn in November 2024