Download the PHP package acalvino4/craft-boilerplate without Composer

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

Project Stack

This Project uses the following libraries and versions:

Platform requirments:

Local development requirements:

Features

Creating New Project

Run command to clone Be prompted for project name, and auto-update where possible commit all changes, run setup

Manually, set cp trigger, email

Ensure local development requirements are met. Then, just run

composer create-project --no-install acalvino4/boilerplate PATH

Some things need to be done manually since they are specific to each new project:

Local Setup

Ensure local dev requirments are met. Then, navigate to directory where you wish to setup project and run

Download database backup from staging or production, and import with command from next section

Development

Commands

Typescript

This project is configured to use alpine.js. Before implementing any custom behavior, see if alpine can handle your needs using template directives, and also checkout headless, integrations, and components, in that priority order to see if they can fill your needs.

Typescript is configured for absolute imports from the css and ts directories. To setup absolute imports for any other directories you may add, follow the format in the compilerOptions.paths setting of tsconfig.json and the resolver.alias setting of vite.config.ts, or reference this guide.

CSS

This project is setup to use tailwindcss, so you should always use utility classes over writing css if possible.

Favicons

All you need to do is drop a few specific files into the src/public/favicon directory. The build process and templates will take care of the rest. See this guide for details on creating various icons formats (an svg should always be the master image from which all others are generated).

Add the project's brand icon and logo to the storage/rebrand/icon and storage/rebrand/logo directories, respectively, to customize the control panel. Make sure it is configured for light and dark contexts.

Fonts

Google fonts is recommended, and just involves pasting a couple lines into wrapper.twig. Variable fonts are highly recommended, and you can limit your search to them on google, though you have to manually compose the link. If you need to use a custom font, ensure it is in woff2 format for best performance, place the files in src/fonts, and put your corresponding @font-face rules in src/styles/font.css.

Colors

oklch colors are automatically handled in the build process to have a fallback for browsers and displays that don't support them. Read about the benefits of this approach. The main benefits of using this color model are wider color gamut and more predictable pallete generation. Just use the oklch() function in your tailwind config:

Upstream updates

If a website's needs would apply to the majority of webstites, make them on the boilerplate repo and then merge them into your site. This way, we can take advantage of your improvement for all derivative sites. To merge changes from the boilerplate into your site:


All versions of craft-boilerplate with dependencies

PHP Build Version
Package Version
Requires craftcms/cms Version ^4.4.0
nystudio107/craft-seomatic Version 4.0.23
nystudio107/craft-vite Version 4.0.5
trendyminds/craft-palette Version 3.1.3
verbb/navigation Version 2.0.17
vlucas/phpdotenv Version ^5.4.0
yiisoft/yii2-redis Version ^2.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 acalvino4/craft-boilerplate contains the following files

Loading the files please wait ...