~/talk

Composer Best Practices

Talkat ScotlandPHP 2018 · 2018-10-05..10-06· [php, developer-experience]
slides:none on file

Composer usage separates into two steps: composer update (composer.json → composer.lock) and composer install (composer.lock → vendor), so never deploy without a lock file and build a release artifact ahead of time. Use --prefer-dist and cache CI to speed downloads, run composer install --optimize-autoloader (or --classmap-authoritative on PHP 7) for production, and use platform config plus composer check-platform-reqs to validate targets. For libraries run update, update with --prefer-lowest --prefer-stable, follow semantic versioning (bump major on BC breaks) and consider private packages for mirrors.

AI-written summary · about

  1. 0:00Introduction and Composer update
  2. 6:25Deployment process best practices
  3. 13:49Handling dependency risks and speed
  4. 18:22New features in Composer 2018
  5. 26:51CI and semantic versioning
  6. 33:10Troubleshooting dependency conflicts
  7. 42:05Platform requirements and checks
  8. 49:13Summary and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.