Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building RESTful Web Services with PHP 7

You're reading from   Building RESTful Web Services with PHP 7 Lumen, Composer, API testing, Microservices, and more

Arrow left icon
Product type Paperback
Published in Sep 2017
Publisher Packt
ISBN-13 9781787127746
Length 244 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Waheed ud din Waheed ud din
Author Profile Icon Waheed ud din
Waheed ud din
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. RESTful Web Services, Introduction and Motivation FREE CHAPTER 2. PHP7, To Code It Better 3. Creating RESTful Endpoints 4. Reviewing Design Flaws and Security Threats 5. Load and Resolve with Composer, an Evolutionary 6. Illuminating RESTful Web Services with Lumen 7. Improving RESTful Web Services 8. API Testing – Guards on the Gates 9. Microservices

Usage of Composer


Composer is a dependency manager and has other different uses. Composer is used to install packages while resolving dependencies. Composer is also very good at auto-loading. There are more uses of as well. Here, we will discuss the different uses of Composer.

Composer as a dependency manager

Composer is a dependency manager. Now you can package your in a way that you don't need to ship third-party dependencies with it. You just need to tell its dependencies. In fact, your package dependencies can have more dependencies, and those dependencies can also have more dependencies. So, resolving all those dependencies while making a package or bundle could be really tiresome. But it is not, thanks to Composer.

Since is also a dependency manager, dependencies are not a problem anymore. We can just specify dependencies in a JSON file, and those dependencies are resolved by Composer. We will look into that JSON file shortly.

Installing packages

If we have dependencies (other packages...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime