Steps to initialize and run the project:- Clone the project localy git clone https://github.com/dipendrakumar2/OminiTechHubTest.git
go to root directory
make writable permission to storage directory.
run command php artisan read:readdirectory to check
1 - Write a small PHP command line application to read the file /etc/dictionary and sort in alphabetical order. run command php artisan read:calculatefactorial 6 to check
2 - Write a program to give the factorial of any number.
Note:-
- I used Laravel framework command line utility.
- My coding is little different from https://github.com/javadevcowan/phptest Since it is in core PHP.
- I used to build-In command line funtion opendir and readdir.