1. Go to this page and download the library: Download pitoncms/piton 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/ */
pitoncms / piton example snippets
/**
* Environment Flags
*
* - production: Boolean variable controls debug and environment modes. Always set to true in production.
* - domain: Set to domain name without subdomain like 'www'. Defaults to localhost for development, but for production set to web domain name.
*/
$config['environment']['production'] = true;
$config['environment']['domain'] = '<domain.tld>';
/**
* Response Headers
*
* Sets response headers dynamically at application runtime
* Define any standard or custom headers as a key:value, in the $config['header'] array in config.local.php
*
* Notes
* - Strict-Transport-Security is *only* sent when not on localhost
*/
$config['header']['X-Content-Type-Options'] = 'nosniff';
$config['header']['Referrer-Policy'] = 'no-referrer-when-downgrade';
$config['header']['X-XSS-Protection'] = '1; mode=block';
$config['header']['Strict-Transport-Security'] = 'max-age=31536000;
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.