Download the PHP package view-creative-agency/craft4-starter without Composer

On this page you can find all versions of the php package view-creative-agency/craft4-starter. 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 craft4-starter

Craft4 Starter

This is the base project from which all VCA projects using Craft4 are built.

The templates/css/config etc are a from-scratch rebuild starting from a beta of Craft4. It is not an upgrade from our previous Craft3 based starter project, though it does re-use some code.

For our development environment we are switching from Pixel & Tonic's "Nitro", which has been deprecated, to a DDEV based system which is heavily copied from onedarnleyroad/craftcms - but with our own customisations (we don't use Tailwind, Alpine etc).

VCA Staff Orientation

We used to use GIT on a self-hosted server in the VCA offices. Moving to GitHub should give us some benefits:

You may want to download GitHub Desktop as a GUI for managing GitHub projects, though it is not necessary.

Branches

You may not be aware of "branches" in GIT. We have so far always worked on the master branch (now called main to avoid problematic language). From now on, we will make use of Branches to better organise things.

Our default branch is called develop and it means that anything in the branch is a work in progress. The stuff in it is expected to change. When we decide we want to make a website live, we will create a new branch called live and all of our work will be copied into that branch. We'll then checkout the live branch on the live server.

This means we can work locally on a develop branch without effecting anything in the live branch. When we're done adding new features and making changes we can then merge the changes from the develop branch into the live branch. Then all we need to do is git pull on the live server to get it to reflect the new work. This way the live server only ever uses the live branch, and we only ever work on the develop branch, we never do work directly on the live branch.

We're also able to make new branches. For example if we had a site that was live, that was also having some new features developed, but we also needed to run some updates on the live site without deploying our in-progress work... we'd create a new temporary branch from live called updates, run the updates on that, commit them, then merge updates into live... then we just git pull on live and it'll have the updates, without any of our in-progress work.

Because databases are not kept in GIT we may sometimes need (locally) more than one database per project, to reflect a live or develop branch. Just something to keep in mind.

Changes from our Craft3 build

Creating a new project

Now uses DDEV, and this repository is itself a Craft CMS starter project using DDEV for local hosting and Vite for front-end bundling and HMR.

  1. composer create-project...
  2. make install
  3. make dev

The development environment

Local machine prerequisites:

  1. Docker
  2. DDEV, minimum version 1.19
  3. Optional but recommended, Composer

Getting Started

Option 1: With Composer (recommended)

If you have Composer installed on your local machine - or an alias to a Docker container - you can use create-project to pull the latest tagged release.

Open terminal prompt, and run:

Make sure that PATH is a new or existing and empty folder on your own machine.

Option 2: With Git CLI

Alternatively you can clone the repo via the Git CLI:

Make sure that PATH is a new or existing and empty folder on your own machine.

Next, you'll want to discard the existing /.git directory. In the terminal, run:

Last, clean up and set some default files for use:

Option 3: Manual Download

Download a copy of the repo to your local machine and move to where you want to your project to run. Similar to above, you'll then want to clean up and set some default files for use. In the terminal, run:

Configuring DDEV

Follow the prompts.

Installing Craft

Getting the existing example CMS with data included (recommended):

This will install everything you need, and start up your browser with the project running.

To install a clean version of Craft with a totally blank database:

Follow the prompts.

This command will:

  1. Copy your local SSH keys into the container (handy if you are setting up craft-scripts)
  2. Start your DDEV project
  3. Install Composer
  4. Install npm
  5. Do a one-time build of Vite
  6. Generate APP_ID and save to your .env file
  7. Generate SECURITY_KEY and save to your .env file
  8. Installing Craft for the first time, allowing you to set the admin's account credentials
  9. Install all Craft plugins

Once the process is complete, type ddev launch to open the project in your default browser. 🚀

Local development with Vite

To begin development with Vite's dev server & HMR, run:

This command will:

  1. Copy your local SSH keys into the container (handy if you are setting up craft-scripts)
  2. Start your DDEV project
  3. Install Composer
  4. Install npm
  5. Do a one-time build of Vite
  6. Spin up the Vite dev server

Open up a browser to your project domain to verify that Vite is connected. Begin crafting beautiful things. ❤️

An important point: At this moment the project is NOT IN GIT it's just there on your machine. You must make a new repo for it yourself - see the wiki.

Makefile

A Makefile has been included to provide a unified CLI for common development commands.

Adding PostCSS Plugins

Needs to be done as something like: ddev exec npm install --save-dev postcss-nesting After which you can edit the postcss.config.js file to actually use it.

Acknowledgements & Credits


All versions of craft4-starter with dependencies

PHP Build Version
Package Version
No informations.
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 view-creative-agency/craft4-starter contains the following files

Loading the files please wait ....