You may want to replicate online site in a local machine for development purposes. Let’s see how to clone site with Apache For Local Development
In this tutorial, We see how to install LAMP and to prepare Ubuntu for PHP development.
How to use composer, dependency management tool for PHP. to download and use 3rd libraries.