There is a code sample of PHP framework - Laravel.
There are several files with code:
- API for plan identity
- Event controller
- Home controller
- Plan model
- Plan controller
- User model
- User controller
This code has 2 identities: user and plan. Each identity has a controller and model. Also there are examples of 2 controllers - Home and Event.
Project for automatization of Real Estate (CRM, Advertising posting, Sites scrapping).
PHP Framework - Laravel 5.1
Code sample contains few parts:
- Hierarchy of classes BaseController -> BaseModelAPIController -> AdPostAPIController
- BaseController - is base and simple controller based on Base Laravel BaseController
- BaseModelAPIController - is base controller for REST API, it contains functions for filtering, sorting and other
- AdPostAPIController - REST API Controller for generating and posting Advertising posts at Real Estate platforms
- LoadCityController - CLI Command for Loading list of cities to DataBase
- AdPost , GeoDistrict and GeoCity - Models
- AuthAPI middleware for authentication REST API clients by token
There are several files with code: