bensherred / 3sc-php-task

3 Sided Cube PHP Task.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting Started & Requirements

  • You'll need php 7.4+ (due to typed properties)
  • Clone this repository
  • Run composer install from the project directory

Cube CLI

A few helpful CLI commands have been created to show examples of how to use the filesystem. Here is a list of the commands which are available to manipulate the cat gif images.

  • cat
    • cat:create - Create a new cat gif
    • cat:delete - Delete an existing cat gif
    • cat:list - List all the cat gif images
  • image
    • image:directories - List all the directories in the images folder
    • image:directory-size - Get the directory size of the images folder
    • image:file-count - Get the number of files in the images directory

For more information on the cli, run php cube.

Tests

To run tests, run the following commands:

composer test

Note: if you run the tests after you have manipulated the images folder, it may cause the console tests to fail. This is due to checking the response for some commands.

About

3 Sided Cube PHP Task.


Languages

Language:PHP 100.0%