Skip to content

o-borovets/ads-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##Requirements

  • PHP: >= 7.0
  • Composer: >= 1.0

##Installation

  • Clone repository from git
  • Run composer install

##Run

From console

php cli.php {adID} {source} {enableLoging} {responseFormat}

From web server

  • Setup web server root into ./web directory
  • Run query with params ?id={adID}&from={source}&log={log}&response_type={responseType}

Query params

  • adID:
    • integer
    • optional, default: 1
  • source:
    • string
    • variants mysql/daemon, case insensitive
    • optional, default: mysql
  • log:
    • bool
    • variants Any value that can be cast to the bool
    • optional, default: false
  • responseType:
    • string
    • variants html/json
    • optional, default: html

##Remarks

  • As an external independent logger used Monolog
  • Info about the test task can read in task.md (RU)

About

Solution of test task

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages