1. Go to this page and download the library: Download reed-jones/neocities 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/ */
reed-jones / neocities example snippets
// First we s\Neocities\Neocities;
// Then we log in using either username/password or api key
$neocities = new Neocities([
'username' => 'YOUR_USERNAME',
'password' => 'YOUR_PASSWORD'
]);
// or
$neocities = new Neocities([
'apiKey' => 'YOUR_API_KEY'
]);
// Programmatic API Usage
$events->afterBuild(function (Jigsaw $jigsaw) {
if ($jigsaw->getEnvironment() === 'production') {
// Automatic deployment after all production builds
$jigsaw->deployToNeocities();
}
});
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.