-
The Devilbox
Introduction In past days replicating the development environment of one machine to another is difficult We can’t assure each system is exact clone of other system But by using Devilbox we can create a highly customisable dockerized LAMP stack No need worry about operating systems if all system have identical .env file then all system work similarly One of the use case is it will provide identical environment which help developers in different territory can maintain their stack identical When a new project arrive we can handle the requirement analysis, delivery date, estimate over all cost, task assigning to team,…
-
Tombstone
Tombstone is the dead code detection library for PHP In our real life most of the time we use only 20 percentage of any application frequently So using Tombstone library (GitHub link: scheb/tombstone) we will check how to remove zero times or rarely called functions As a result our codebase will get slimmer and healthier by removing unwanted functions Leaving dead code in project makes it much harder to find the bugs Using IDE’s find usage we can easily identify whether the function is called or not But if function a() called inside function b() which is called inside function…
-
PPT to PDF
The above one line shell snippet in php script is used to convert the powerpoint file in to PDF file using libreoffice. The same command can be used for all the files which are able to open using libreoffice like doc, docx, odt, odp, etc., Shell command is enclosed in back tick symbol not single quotes. PHP by default execute command inside back tick as shell command alternatively you can use shell_exec Let’s we see each arguments and it’s description (this is an excerpt from official document) we passed to the shell command libreoffice –headless Starts in “headless mode” which allows…