Skip to content

SirmaXX/php_product_feeder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Php product feeder

How to use Project

php -S localhost:1234 index.php

How to use Modules

Json Controller

include 'JsonController.php';

$json=new Json();

$json->All_row();

You can use this method in all modules.(LogFactory,json controller,xml controller) .If you need more detail about project .You can run and go to index page for details.

Missings | deficiencies !

1.All modules need to improvements,they are work in basic level but they can more effective with subclass.

2.I need time for post and get requests for url routing.

3.Test and Log not used in this projects

Architecture

  • views
    • 404.php
    • index.php
    • info.php
  • Xml
    • XmlController.php
    • add-item.php
    • delete-item.php
    • get-item.php
    • items.php
  • Json
    • JsonController.php
    • add-item.php
    • delete-item.php
    • get-item.php
    • items.php
  • Data_Folder
    • products.json
  • Test Folder
    • TestController.php
  • Logs
    • LogFactory.php
  • routes.php
  • router.php

Note: All modules developed independents from each other.They need only product.json and router.php need view folder .

Dependencies

https://phprouter.com/ I have used this library for url routing.

Tracking Log

  • Day 1 (2022/8/23 ): Create project and software architecture.

  • Day 2 (2022/8/24 ): Solve the technical issues & start to develop libraries

  • Day 3(2022/8/25 ): Start to develop routing & finish the libraries

  • Day 4(2022/8/26 ): complete main jobs.

  • Day 5 (2022/8/27 ): writing documentation

  • Day 6 (2022/8/28 ): organize all things

  • Day 7 (2022/8/29 ): Develop Test cases with framework

  • Day 7 (2022/8/30 ): Project submission

Future Features

  1. Cache development
  2. Dockerizing
  3. Documentation
  4. Test & Log implementation