Skip to content

Latest commit

Β 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

posts

REQUIREMENT:

(code test requirement hide for privacy protection)

DESCRIPTION:

- Output format is configurable inside config.php (output_format)
- Formattable JSONFormatter needs to be created in order to support json export
- Class SimplePostExporter is in charge of export Posts with id only.
- In order to support detail output, new class with Exportable interface needs to be created.

USAGE:

[]$ php main.php data/posts.csv

FILES:

.
β”œβ”€β”€ config.php
β”œβ”€β”€ data
β”‚Β Β  └── posts.csv
β”œβ”€β”€ init.php
β”œβ”€β”€ main.php
β”œβ”€β”€ model
β”‚Β Β  β”œβ”€β”€ CSVFormatter.class.php
β”‚Β Β  β”œβ”€β”€ Exportable.interface.php
β”‚Β Β  β”œβ”€β”€ Formattable.interface.php
β”‚Β Β  β”œβ”€β”€ Post.class.php
β”‚Β Β  β”œβ”€β”€ PostProcesser.class.php
β”‚Β Β  β”œβ”€β”€ PostWriter.class.php
β”‚Β Β  └── SimplePostExporter.class.php
β”œβ”€β”€ output
β”‚Β Β  β”œβ”€β”€ daily_top_posts.csv
β”‚Β Β  β”œβ”€β”€ other_posts.csv
β”‚Β Β  └── top_posts.csv
β”œβ”€β”€ README.md
β”œβ”€β”€ script
└── test
    └── GeneralTest.php

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages