This document introduces PHP applications based on middleware and PSR-7. It discusses the PSR-7 standard for HTTP messages, which defines request and response objects. It also covers PSR-15 for server middleware, where each middleware in the chain can process the request and decide whether to pass it to the next middleware. Examples are provided of common middleware like caching, routing, and authorization middleware. Finally, it lists some frameworks that use this middleware approach like Zend Expressive, Slim, and Stack PHP.