-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm not so sure how to use this #1
Comments
This library by itself is mostly just for uploading/modifying/deleting files you already have. I have mostly used it for writing CLI scripts, and for the jigsaw integration. Theres lots of ways to store your keys, but I personally would install vlucas/phpdotenv putting my keys in a If your just starting to make your site I would suggest checking out Jigsaw Its already got the |
Right. Is it possible for neocities to support .PHP files? |
not directly no, but that's how Jigsaw (or something else) can help. It compiles your .php files into static .html files that can get uploaded to neocities |
Right. Thanks a lot. I just have to figure out on my own how to use Jigsaw with this. I have no clue what I'm doing xD |
👍 Good luck, Hopefully their instructions help get you all set up |
Do I install this into the jigsaw directory or my project's directory? |
starting from scratch, I would make new project folder mkdir myProject install Jigsaw & Neocities-php cd myProject
composer require tightenco/jigsaw
composer require reed-jones/neocities 'initialize' the Jigsaw stuff by running ./vendor/bin/jigsaw init That will generate the project skeleton and add a bunch of files, one of them in the root of your project will be then 'install' the neocities integration by adding this to your bootstrap.php (It doesn't really matter where, but I would probably put it above that big comment block, so like line 7. Jigsaw::mixin(new \ReedJones\Neocities\NeocitiesDeployment($container)); Next is the keys, so create a file called now add your api key in there
|
Jigsaw has been updated & everything should be working properly again 👍 let me know if you run into troubles |
Title. I'm completely new to php and I'm not so sure how to run this or where to put my key, etc etc. I have composer and PHP installed already. But I don't know where to go from there
The text was updated successfully, but these errors were encountered: