# PHP notes ## Lessons ### Day 1 #### Lectures 1. [Intro to PHP](PHP.md) 1. [Intro to PHP 2](PHP2.md) #### Lab/HW ideas 1. Test syntax knowledge 1. Mimic Find/All with 2D arrays and nested objects ### Day 2 #### Lectures 1. [PHP/Postgres API - READ](API.md) 1. [PHP/Postgres API - CREATE, UPDATE, DELETE](API2.md) #### Lab/HW ideas 1. Build CRUD functionality for locations (id, street, city, state) - Model is `Location`, factory is `Locations` ### Day 3 #### Lecutres 1. [Nested Models](Nested_Models.md) #### Lab/HW ideas 1. Implement find for both `/people/:id` and `/locations/:id` 1. Stretch: imlement an many-to-many relation with a `Companies` model - use a `jobs` intermediary table