Skip to content

Latest commit

 

History

History

PHP

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Samples of PHP

First sample

There is a code sample of PHP framework - Laravel.

There are several files with code:

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.

Second sample

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: