Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

jevets/grg-kirby

Repository files navigation

Kirby's Plain Kit with Composer

A port of Kirby's Plain Kit to work with Composer.

Why?

Composer is the excellent package/dependency manager for PHP.

This project helps you quickly spin up a Kirby site, installing kirby, toolkit, and the panel with composer.

Directory Structure

This project uses a customized folder setup.

project/
    .gitignore
    composer.json
    package.json
    public/
        .htaccess
        index.php
        site.php
        content/
        assets/
            avatars/
        thumbs/
        # Composer installs these:
        kirby/
            toolkit/
        panel/
    site/
        accounts/
        blueprints/
        cache/
        config/
        controllers/
        models/
        snippets/
        templates/

Feel free to change the directory structure, but make sure to:

  • adjust your installer-paths in composer.json
  • adjust your paths in .gitignore
  • adjust your path to site/ in public/site.php
  • adjust your path in the serve script in package.json

Installation

Make sure you have composer installed.

git clone https://github.com/jevets/kirby-composer-plainkit my-site
cd my-site
composer install

Local Webserver

Install Node.js and npm.

I've included a simple server script in package.json.

npm run serve

If you've changed the directory structure, make sure to update the serve script in package.json.

"scripts": {
    "serve": "php -S localhost:9000 -t path/to/my/document/root/"
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published