Download the PHP package jalendport/spark-craft without Composer

On this page you can find all versions of the php package jalendport/spark-craft. 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 spark-craft

Spark Craft

An opinionated Craft CMS 5 starter that boots to a working site, not a blank slate.

Every new Craft site starts with the same setup: wiring a local stack, configuring a bundler, structuring templates, picking plugins. Spark Craft is that baseline already built — a Craft CMS 5 boilerplate that a single spark create turns into a running, conventional site with a Dockerized local stack, a modern Vite frontend, and a Twig/Vue template skeleton.

Features

Installation

You'll need Docker Desktop or a compatible engine for the local stack, plus the spark CLI:

Scaffold and start a project:

Answer the prompts and you'll land on a running site at http://localhost:8000, with the control panel at /admin.

spark create downloads the boilerplate and asks for your project name once, threading it through the project — the npm package name, the composer description, and the site name Craft is installed with. It copies .env.example.dev to .env, swaps composer.json.project into place as your project's composer.json, initializes a fresh git repository, then asks to run setup. Confirm, and it brings the Docker stack up — dependencies install on first boot — and installs Craft together with the bundled plugins, prompting only for your admin account and site language (the site name and URL are set for you). Decline, and spark prints those commands so you can run them whenever you're ready.

Without the spark CLI

Prefer plain Composer? composer create-project scaffolds the same project:

Its post-create-project-cmd copies .env from .env.example.dev, swaps composer.json.project into place as your composer.json, and removes the interim lockfile. From there, wire up your own stack:

  1. Configure .env for your environment — APP_URL must be set, since the installer reads it through the @web alias.
  2. Run composer install to pull in Craft and the bundled plugins.
  3. Run composer craft-setup to generate keys, install Craft, and enable the plugins — the installer prompts for your site name along with the admin account.

Usage

Docker workflow

docker-compose.yml defines the local services:

Service Image / build Host port
mysql jalendport/spark-mysql 3307 → 3306
nginx jalendport/spark-nginx 8000 → 80 (the site)
node local build (Vite) 8080 (dev server)
php local build (PHP-FPM) internal only
queue local build internal only (queue worker)
redis redis:7-alpine internal only
mailpit axllent/mailpit 8025 (web UI, overridable)

spark up starts everything detached; spark logs tails the services and spark down stops them. The site is served at http://localhost:8000, the Vite dev server at http://localhost:8080, and Mailpit's inbox UI at http://localhost:8025 (set MAILPIT_UI_PORT in .env when another project already claims 8025).

On first boot the node container runs npm install for you. Keep it that way: Vite's bundler ships platform-native binaries, so a node_modules/ installed from the macOS host won't run inside the Linux container. If you ever install on the host (e.g. for editor tooling), delete node_modules/ and restart the node container to get a container-native install back.

Run Craft console commands inside the php container:

Scaffold Craft classes with the generator:

The verbs come from two places: the project's spark.yml maps spark craft, spark composer, and spark npm into the right containers, and the CLI ships built-ins (up, down, restart, logs, sh, run) for the compose lifecycle. Run spark from the project root to see them all.

Frontend

The frontend source lives in src/, and Vite is configured in config/frontend/vite.config.js. There are two entry points, src/js/main.js and src/css/main.css, injected into Twig via the craft-vite plugin (craft.vite.script(...) / craft.vite.asset(...)). Built assets land in web/dist/.

npm scripts (run in the node container via spark npm):

Tailwind 4

Design tokens live in src/css/theme.css using Tailwind 4's CSS-first @theme block — there is no tailwind.config.js. Notable conventions:

Vue

The Vue app auto-registers components from src/js/vue/components/ using import.meta.glob:

Because the glob is evaluated at startup, a Vite plugin restarts the dev server when a component file is added or removed.

The kit ships a set of form components (FormInput, FormSelect, FormCheckbox, FormRadio, FormFileUpload, etc.) and a SuperForm wrapper built on vee-validate and yup, plus composables in src/js/vue/composables/ and framework-agnostic helpers in src/js/utils/.

Icons and fonts

Templates

Templates live in src/templates/ — the templates path is moved there by the CRAFT_TEMPLATES_PATH constant defined in config/craft/bootstrap.php.

Quality tooling

Configuration

Craft config lives in config/craft/:

Environment files come as a per-environment trio: .env.example.dev, .env.example.staging, and .env.example.production. spark create copies the dev variant to .env (on the Composer path, the post-create-project-cmd script does the same); copy the staging/production variants onto their respective servers.

Deployment

Two GitHub Actions workflows, built on the reusable composite actions in jalendport/spark-github-actions, handle deploys:

Each builds (composer install, npm install, npm run build), rsyncs to the server, and triggers a Laravel Forge deployment. Set these repository secrets, per environment (prefix with STAGING_ and PRODUCTION_):

Note: the composite actions currently pin php-8.3 and node-22 variants, while the runtime images are on PHP 8.4.

Support

Found a bug or need help? Open an issue.


Made by Jalen Davenport


All versions of spark-craft with dependencies

PHP Build Version
Package Version
Requires craftcms/ckeditor Version ^5.6.0
craftcms/cms Version ^5.10.0
nystudio107/craft-emptycoalesce Version ^5.0.0
nystudio107/craft-typogrify Version ^5.0.0
nystudio107/craft-vite Version ^5.0.0
vaersaagod/seomate Version ^3.3.0
verbb/expanded-singles Version ^3.0.0
vlucas/phpdotenv Version ^5.6.0
yiisoft/yii2-redis Version ^2.0.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 jalendport/spark-craft contains the following files

Loading the files please wait ...