PHP code example of kreait / php-boilerplate

1. Go to this page and download the library: Download kreait/php-boilerplate library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kreait / php-boilerplate example snippets

bash
# With composer
$ composer create-project kreait/php-boilerplate new-project

# With git
$ git clone [email protected]:kreait/php-boilerplate.git new-project && cd $_ && rm -rf .git && git init