The current preferred way of using CrudKit is through the downloaded zip file. Download the file, unzip it and copy it to a directory. The benefits of this is that you don’t have to worry about static file paths. But customizability to enable you to use CrudKit in the manner that is most fitting to your workflow will be added later.
crudkitdirectory, which you extracted from the zip in the same directory as the file (don’t change the name)
- your_website_root <-- this should be mapped to "/" on your server. This will usually be accessible by "http://localhost/" |--- some/folder <-- you can put your crudkit php in any folder, or even root folder. |------ your_app.php <-- This is accessible by "http://localhost/some/folder/your_app.php" |------ crudkit <-- Copy the "crudkit" folder from download directory here. |--------- crudkit.php <-- you should be able to include this file |--------- ... other files
Here’s a basic script to get you started:
To upgrade, download a new copy and replace the contents of the
crudkit directory. In the future, once composer is supported, updating will be simpler and more straight forward if you choose to use composer.