Download the PHP package kraenkvisuell/kraenk-statamic-kit without Composer

On this page you can find all versions of the php package kraenkvisuell/kraenk-statamic-kit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package kraenk-statamic-kit

kraenkvisuell/kraenk-statamic-kit

Updatable Statamic starter kit for kraenkvisuell's eloquent-driven Statamic 6 sites. It carries the setup every site shares – content in the database (statamic/eloquent-driver, Postgres, uuid ids), asset container and Glide cache on Bunny Storage behind Bunny CDN, static caching, Horizon, Livewire-shipped Alpine, SEO Pro – the PHP that goes with it, and a complete theme as the starting point: the vollbild.film site (blueprints, fieldsets, Antlers views, Tailwind CSS, Alpine JS), to be made generic step by step. The conventions themselves live in ~/Code/coding-guidelines.

This repo is generated. Its source of truth is the package/ folder of a sandbox site plus that site's files; php please starter-kit:export writes this repo (see "Working on the kit"). Don't edit files here by hand – they are overwritten by the next export. The exception is .github/, which lives only here.

Two kinds of content

Package code (src/) stays a Composer dependency in every site (updatable: true) and is updated with composer update kraenkvisuell/kraenk-statamic-kit. Statamic autoloads it through the ServiceProvider (an AddonServiceProvider, namespace Kraenkvisuell\StatamicKit):

Exported files (export/, listed under export_paths in starter-kit.yaml) are copied into the new site once and are the site's own from then on:

dependencies are required into the site's composer.json at the versions the sandbox has (eloquent-driver, seo-pro, horizon, flysystem-aws-s3-v3, livewire, statamic-livewire; dev: pint, debugbar, error-solutions). The auto_alt_text module (default yes) adds el-schneider/statamic-auto-alt-text and its config.

Installing into a new site

The package is on Packagist (kraenkvisuell/kraenk-statamic-kit), so a plain composer require works and no repositories entry is needed. Afterwards (also printed by the post-install hook):

  1. .env: DB_CONNECTION=pgsql + credentials, QUEUE_CONNECTION=redis, BUNNY_S3_*, BUNNY_PUBLIC_URL, GLIDE_CACHE_DISK=bunny-glide-cache, STATAMIC_PRO_ENABLED=true (the theme is multi-site de/en, see resources/sites.yaml).
  2. php artisan migrate, then php artisan kit:init (single- or multisite, demo pages and navigations, site settings, blog posts, projects and partners, SEO Pro site defaults, the super user [email protected] / password).
  3. npm install && npm run build (or npm run dev).
  4. Behind Bunny CDN, in bootstrap/app.php:

  5. Point the site's CLAUDE.md at @~/Code/coding-guidelines/CLAUDE.md and keep only what is specific to the site.
  6. Static caching: set STATAMIC_STATIC_CACHING_STRATEGY=half in production; adapt invalidation.content_graph in config/statamic/static_caching.php when collections, sets or reference fields change.

Updating a site

updates the package code (src/). Exported files are not touched by updates – compare them with this repo's export/ folder by hand when something there changed.

Working on the kit

The kit is developed inside a sandbox site (a "dummy" Statamic site), never in this repo directly:

  1. Set up the sandbox once. Create a Statamic site (or use an existing one), copy this repo's root files – composer.json, starter-kit.yaml, StarterKitPostInstall.php, README.md, src/ – into <sandbox>/package/, and require the package through a path repository in the sandbox's composer.json:

    composer update kraenkvisuell/kraenk-statamic-kit links vendor/kraenkvisuell/kraenk-statamic-kit to package/. Then install the exported files into the sandbox (php please starter-kit:install kraenkvisuell/kraenk-statamic-kit --local from a clone, or copy export/ over the sandbox), so the sandbox runs the theme.

  2. Edit in the sandbox. Code in package/src is live immediately (a new command or modifier only needs the file). Theme and config files are edited where they live in the sandbox (resources/, content/*.yaml, config/, …) – add new files to export_paths in package/starter-kit.yaml. Generic PHP goes into package/src; site-specific code stays in app/ and is not exported.
  3. Export and publish.

    --clear empties the clone (except .git) before writing, so removed files disappear too. starter-kit.yaml is written with the dependency versions from the sandbox's composer.json. Packagist updates from GitHub (auto-update hook), so sites pick the change up with composer update kraenkvisuell/kraenk-statamic-kit (package code). Tag releases as vX.Y.Z and push the tag; .github/workflows/release.yml then creates the GitHub Release with generated notes. .github/ is the one folder maintained in this repo by hand: --clear removes it on every export and composer export restores it with git checkout -- .github.

Rules of thumb: whether a file belongs in src/ or in export_paths depends on who should be able to change it later – the kit (src/) or the site (export_paths). Anything in neither place is not part of the kit.


All versions of kraenk-statamic-kit with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
statamic/cms Version ^6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kraenkvisuell/kraenk-statamic-kit contains the following files

Loading the files please wait ...