Download the PHP package sergeant/drupal-project without Composer

On this page you can find all versions of the php package sergeant/drupal-project. 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 drupal-project

Composer template for Sergeant Drupal projects

This is the fork of Composer template for Drupal projects. All documentation regarding this project is available on given url. The notes bellow are addition/override of the source documentation. The updates from forked project has to be implemented manually.

Lead maintainer: Zan Vidmar (contact)

Maintainer: Aljosa Furlanic (contact)

Usage

Access

For successful installation of Sergeant modules, read access to Sergeant private repositories is needed.

Sergeant workflow

Sergeant drupal project init article (private)

Installation (!)

Initialize project with command line generator

  1. command line generator

Initialize project just with composer

First you need to install composer.

  1. After that you can create the project:

Change the some-directory with your directory where the project will be.

In case if something is not installed correctly try to clear composer cache first (composer clear-cache), and than report an issue.

  1. Install Drupal with the Installation Profile (everything is handled by sgt_installation_profile module).

  2. Create new checklist /admin/config/sergeant/sgt_checklist and go trough all checklist items.

Settings

Development local.services.yml example:

Updating Drupal project itself

That will update some settings in composer.json file and also some other Drupal project related files. Updates are handled by sergeant/sgt_drupal_project_update;

To update drupal project to last version:

or to update it to specific project version:

Keep local "repositories" in composer.json file as they are

In case you would not like to update "repositories" data (for example: if you change library version for given project only) use: add keep-local-repositories-data=true flag.

Example

Updates (!)

Every time when Drupal core is updated, we have to update Drupal module Sergeant core (sgt_installation_profile). Sergeant Installation Profile holds all currently active patches for Drupal core and modules required by Sergeant Installation Profile. All other patches has to be handled on project level.

What does this template adds to forked drupal-composer/drupal-project

Packages required by default (wiht its dependency tree)

All modules listed below in dependency tree are required by default. sergeant/sgt_installation_profille module handles all other required contributed Drupal modules.

Sergeant Drupal project (composer project)

Included repositories

This only include package sources, the installation is optional and always made by developer.

Included Sergeant private repositories:

Required contrib packages (JS libraries)

Included contrib packages (JS libraries)

Composer file modifications

Installer paths

Installer paths are changed to a non standard paths, to met the Sergeant workflow with Sergeant modules and Sergeant Ignite theme.

All Sergeant modules are placed in web/modules/sgt/ directory.

The structure of module folder:

Sergeant Ignite theme is placed in web/themes/sgt_ignite/ directory.

Sergeant installation profile is placed in in web/profiles/sgt/ directory.

Other modifications

PHP version

This template by default requires at least PHP 8.1

DDEV setup

Troubleshooting

In case of denied acces to private repos add keys to ddev container by ddev auth ssh command


All versions of drupal-project with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
composer/installers Version ^1.9
cweagans/composer-patches Version ^1.7
drupal/console Version ^1.0.2
drupal/core Version ^9
drupal/core-composer-scaffold Version ^9.5
drupal/core-recommended Version ^9.5
drush/drush Version ^10.6
harvesthq/chosen Version ^1.8
sergeant/sgt_core Version >=3.3.0
sergeant/sgt_ignite Version ~4.0
vlucas/phpdotenv Version ^5.1
webflo/drupal-finder Version ^1.2
zaporylie/composer-drupal-optimizations Version ^1.0
sergeant/sgt_drupal_project_update Version >=3.0
sergeant/sgt_installation_profile 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 sergeant/drupal-project contains the following files

Loading the files please wait ....