Skip to content

1 Install Vanitas

RACINE Pierre-Alexandre edited this page Apr 7, 2019 · 1 revision

How to install

Place the files

In order to install the application, you just have to upload the files on your server without modifying any file. In my case, I created a lib folder where I put my vanitas root file. You might have your folders like : /home/user/Project/myProject/lib/vanitas/ . Just remember that its location is not important, upload the folder vanitas in whatever place you want.

Inside this folder, make sure everything is all right : you must have your vanitas.php file and a src folder. Vanitas folder installation

Yep, that's now installed. What about using it now ?

Using the files

Once you uploaded/installed your vanitas folder where you desire, you can already start using it with a single line of code. Just place this line on each page you want to get informations about your visitors : require_once 'location/of/yourvanitas/folder/vanitas.php';

If you have a MVC or MVP pattern on your application, you can simply add the line on your controllers instead of your pages. If you have a main controller or an abstract controller, you can put this line of code in it once for your entire application.

Clone this wiki locally