Coder Social home page Coder Social logo

3sc-php-task's Introduction

3SC PHP Task

Getting Started

  • Clone this repository
  • Run composer install from the project directory
  • Commit your progress
  • You'll need php 5.6+ (ideally 7.1)

Task

You will be building a simple image cat gif storage system.

Some interfaces have been provided in the /src directory. Your solution should implement each of these and provide usage examples which may be run from the command line.

The solution should demonstrate manipulation of the filesystem using the images provided in the /images directory.

Important

Your solution should demonstrate use of OO design principles, particularly SOLID and you may choose to use any additional design patterns.

Additionally you may wish to make use of features provided by Standard PHP Library, however this is optional.

Your solution is not required to demonstrate uploading of files, and does not require a HTML front end. It should include a usage example that may be run from the command line to demonstrate reading and manipulation of the filesystem.

Some sample images have been provided in the /images directory.

Tests

Your solution should include some unit tests. Some examples have been provided already.

To run tests, run the following commands:

composer install

./vendor/bin/phpunit

New Feature (Console Commands)

To execute the new command enter:

php index.php app:<command-name>

To list the available commands:

php index.php list

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.