Stay Practiced.
Local toolsSite guideSettings
Curriculum

PHP: requests to reliable services

Learn PHP values and collections, then own HTTP, persistence, security, concurrency, diagnostics and a complete service publication.

20 units · Web, Plus, Pro · 20 programming subjects + 2 security tracks

Branches show this unit’s authored theory, coding and assessment work.

Select a node. Drag the background to pan.100%

Unit 1 / 20

Accept exact PHP values at the boundary

Distinguish runtime type, lexical transport form, presence and truthiness before a value reaches domain work.

0 prerequisite skills · Reading, guided completion and independent success remain separate evidence.

Open this unit

The course, in order

Open a unit in the map to inspect its activities. Reading, guided completion, independent work and review remain distinct evidence.

  1. Accept exact PHP values at the boundary

    Distinguish runtime type, lexical transport form, presence and truthiness before a value reaches domain work.

    Open this unit
  2. Preserve PHP collection shape and callback intent

    Keep list shape, identity keys, stable order and callable arguments intact across collection transforms.

    Open this unit
  3. Validate complete text before decoding JSON

    Keep byte budgets, Unicode validity, JSON syntax and decoded root shape as separate boundary decisions.

    Open this unit
  4. Turn one request into one safe response

    Resolve method, repeated input, header and output-context policy before executing a request command.

    Open this unit
  5. Make PHP state policy exhaustive

    Decode backed enums safely and keep transport values, case names and exhaustive match policy distinct.

    Open this unit
  6. Preserve PHP callable and capture contracts

    Choose snapshot or live scalar capture deliberately, then preserve that time policy in a changed predicate contract.

    Open this unit
  7. Keep SQL code separate from PHP data

    Bind values through the statement contract, preserve placeholder shape and close result cursors owned by the operation.

    Open this unit
  8. Unwind only the PHP resources you acquired

    Preserve the primary failure, release each acquired resource and avoid committing or rolling back a caller-owned scope.

    Open this unit
  9. Keep time and money exact

    Parse explicit time zones and decimal money without machine-local defaults or binary floating conversion.

    Open this unit
  10. Define honest PHP object ownership

    Construct typed objects completely, expose readonly scalar state and clone only mutable children the object owns.

    Open this unit
  11. Own lazy PHP iteration through completion

    Consume a single-use iterable once, catch failures at execution and close a privately owned suspended generator.

    Open this unit
  12. Publish complete PHP files from owned stages

    Acquire paths without check-then-create races, contain targets and publish only fully written owned files.

    Open this unit
  13. Bind browser state to the intended session

    Rotate authenticated sessions, configure complete cookie policy and verify a session-bound CSRF token.

    Open this unit
  14. Version continuation and representation policy

    Treat cursors as versioned data and resolve response representation by explicit media specificity.

    Open this unit
  15. Test PHP failures without leaking process policy

    Inject controlled failures, restore process-wide handlers and expose stable diagnostics without invoking attacker objects.

    Open this unit
  16. Resolve PHP metadata without hidden execution

    Choose trait conflicts, namespaces and attribute metadata explicitly without executing constructors during inspection.

    Open this unit
  17. Ship a complete PHP request feature

    Combine request validation, prepared data access, bounded diagnostics and context-safe output in one feature boundary.

    Open this unit
  18. Commit related PHP state once

    Guard optimistic writes in the mutation and commit domain state with its delivery intent atomically.

    Open this unit
  19. Authenticate bytes before interpreting data

    Verify passwords, signed payloads and random tokens using standard cryptographic boundaries and canonical bytes.

    Open this unit
  20. Publish a recoverable PHP service operation

    Integrate authenticated input, checked state change, transaction ownership and complete publication with recoverable failure.

    Open this unit
TheoryHands-on codingEvidence / reviewTechnical wikiMembership access