- You'll need php 7.4+ (due to typed properties)
- Clone this repository
- Run
composer install
from the project directory
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 gifcat:delete
- Delete an existing cat gifcat:list
- List all the cat gif images
- image
image:directories
- List all the directories in the images folderimage:directory-size
- Get the directory size of the images folderimage:file-count
- Get the number of files in the images directory
For more information on the cli, run php cube
.
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.