Download the PHP package leeroy/craft-starter-twig without Composer

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

Craft Starter Twig

Twig starter running on Vite with optional Web Components and page transitions with Barba.js

Local machine prerequisites:

  1. Docker
  2. DDEV
  3. Composer

Create a new project with this starter

  1. Open terminal prompt, and run:

  2. Edit .ddev/config.yaml file and change the name (php_version or database if needed).
  3. Then to install a clean version of Craft, run:

  4. Follow the prompts (DDEV helped filling the .env file)

Once the process is complete, type make dev to start developing on the project. 🚀

The command above will automatically:

  1. Copy your local SSH keys into the container
  2. Start your DDEV project
  3. Install Composer
  4. Install yarn
  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

Developing on an existing project

This command will automatically:

  1. Copy your local SSH keys into the container
  2. Start your DDEV project
  3. Install Composer
  4. Install yarn
  5. Do a one-time build of Vite
  6. Spin up the Vite dev server
  7. Output a ddev describe to show the project domain
  8. Open up the browser (for MacOS users)

Open up a browser to your project domain (something like xxxx.ddev.site) to verify that Vite is connected. Begin crafting beautiful things. ❤️

Databases

Export a database with:

Import a database with:

You can also use DDEV's included phpMyAdmin for database imports — just be aware it's much slower.

Makefile

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

DDEV

Using the 'ddev' command

Make sure that nothing else is running at the same time (Apache or other Docker-based environment).
To turn off Lando:

Front-end

Everything is setup so that the code is prettified and linted as you develop, and before every commit.
Be sure to install the recommended extensions by clicking Install on the prompt window, or open the Command Palette (Cmd/CTRL + Shift + P) and search for Extensions > Show Recommended Extensions.

EditorConfig and Prettier are there to apply formatting rules (missing semicolon, extra spaces, etc.)
ESLint and Stylelint checks for code quality (unused variables, unreachable code, etc.)

Extras

If you need interactivity, think of Web Components, or the Sprig plugin

You can debug PHP code easily with Xdebug, just follow the instructions to setup your IDE.
Then, use ddev xdebug on and ddev xdebug off to turn it on/off.

Thanks

Thanks to onedarnleyroad/craftcms for some great ideas used in this starter (makefile, etc.)


All versions of craft-starter-twig with dependencies

PHP Build Version
Package Version
Requires craftcms/aws-s3 Version 2.0.1
craftcms/cms Version ^4.2.7
craftcms/redactor Version 3.0.2
nystudio107/craft-seomatic Version ^4.0
nystudio107/craft-vite Version ^4.0
vlucas/phpdotenv Version ^5.4.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 leeroy/craft-starter-twig contains the following files

Loading the files please wait ....