PSR Standards & HTTP Messages Flashcards
PSR 4 is…
Autoloading Standard, describes how namespaces should be built and the corresponding directory structure.
Which PSR describes how HTTP Messages (Requests and Responses) need to be structured?
PSR 7 HTTP Message Interface
Which PSR dictates Constants are in UPPER_CASE?
PSR-1 Basic Coding Standard
Which PSR describes the standard for dependency injection?
PSR 11 Container Interface
PSR 18 …
HTTP Client, describes handling of sending http requests with a client Object.
HTTP Factories are what PSR and what purpose?
PSR 17, Mainly offers interfaces for Factories creating Request and Response objects.
In which PSR is described what behaviour an Event Listener should have?
PSR 14 Event Dispatcher
Psr 7 is…
Caching Interface
Logging is described in PSR…
PSR-3 Logger Interface
What Log Levels exist?
DEBUG, NOTICE, INFO, CRITICAL, WARNING, ALERT, ERROR, EMERGENCY
In which PSR is stated that files containing only PHP MUST NOT end with “?>” ?
PSR-12 Extended Coding Style
PSR-13 …
Hypermedia Links, describing Object Interfaces for a tag links in frontend in a PHP Foramt.
Middleware is defined where?
PSR-15 HTTP Server Request Handlers
Caching Libraries PSR?
PSR-16 Common Interface for Caching Libraries, basically caching libraries should work like the HTTP Cache does.
Fill in the blanks for an HTTP Request:
____ ____ ____
Host: ____
____
- POST
- /path123
- HTTP/1.1
- argument1=value2
- chickenlittle.com
POST /path123 HTTP/1.1
Host: chickenlittle.com
argument1=value2