GithubHelp home page GithubHelp logo

fetching-data's Introduction

fetching-data

Step One Clone Repo

git clone [email protected]:coder0010/fetching-data

or you can download it by the desktop application of github

https://github.com/coder0010/fetching-data

Switch to the repo folder

cd fetching-data

Step Two Prepare Project

1 Prepare the project

run composer i && composer dump-autoload -o

2 open src\Env file to set your config of database

3 run

php index.php 

Task Core Files

  • Database

    • Connections => grouping all connection to dbms like (mysql, sqllite, ...)
    • DatabaseFactory.php => return instance of requested connection
    • Executer.php => it's data layer between eloquents and db [ it's very important ]
  • Repositories

    • Contracts

      • BaseRepository.php => it's the main ( contract ) interface that all model contract with extend from them
    • Eloquents

      • BaseEloquent.php => it's the main ( eloquent ) class that all eloquents will extend from them and has all the implementation of BaseRepository.php
  • Services

    • MigrateService.php => start connection to db by executor then run creation of db and tables
    • ImportService.php => Reading data from excel per page
    • SeedService.php => construct needed Contracts ( Repos ) and set by encapsulation to local properties and push them to models then save them my eloquents
    • ExportService.php => construct needed Contracts ( Repos ) and set by encapsulation to local properties and convert them to json and put them to json file
  • Controllers

    • MigrateController.php
    • ImportController.php
    • SeedController.php
    • ExportController.php

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.