To run the Slim Skeleton Framework website, which utilizes Twig, follow these steps:
-
Install PHP on Windows:
- Download the Thread Safe version of PHP for Windows from php.net.
- Extract the downloaded PHP archive to a directory (e.g.,
C:\php). - Add the PHP directory to the system's PATH environment variable.
- Verify the PHP installation by running
php -vin the command prompt.
- Download the Thread Safe version of PHP for Windows from php.net.
-
Install Composer on Windows:
- Download Composer's Windows installer from getcomposer.org.
- Run the installer and follow the installation instructions.
- After installation, verify Composer by running
composer -vin the command prompt.
- Download Composer's Windows installer from getcomposer.org.
-
Install XAMPP:
- Download and install XAMPP from apachefriends.org.
- Start the Apache and MySQL services from the XAMPP Control Panel.
- Download and install XAMPP from apachefriends.org.
-
Import Website's Database Script:
- Clone or download the repository from Bitbucket.
- Navigate to the
slim-skeleton/res/dbdirectory and locate thesehrs.dbfile. - Import the
sehrs.dbfile into phpMyAdmin:
- Open phpMyAdmin in your web browser.
- Create a new database (e.g.,
sehrs). - Select the created database and choose the Import tab.
- Upload the
sehrs.dbfile and execute the import.
- Open phpMyAdmin in your web browser.
- Clone or download the repository from Bitbucket.
-
Starting the Server:
- Navigate to the root directory of the downloaded repository.
- Open a terminal or command prompt in the directory.
- Run the following command to start the PHP built-in server:
php -S localhost:8000 -t public public/index.php
- Navigate to the root directory of the downloaded repository.
-
Accessing the Website:
- Open a web browser and go to
http://localhost:8000to access the Slim Skeleton Framework website.
- Open a web browser and go to
Now, you should have the Slim Skeleton Framework website up and running on your local machine.