Download the PHP package dpi/drupal-local without Composer

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

Local Drupal Development

This setup is exclusively for local development only.

Setup

This setup has been tested with :

Usage

  1. composer create-project dpi/drupal-local
  2. cp .env.dist .env and add values.
  3. composer install
  4. Install Certificates, see Local TLS section below.
  5. Optionally copy and remove dist. prefix from settings files.
  6. docker-compose up -d

Drupal

Drupal is accessible at https://localhost/

Installation

Common tasks

Alternative hostnames

Want to use a hostname other than localhost, such as DOMAIN.localhost? (automat- ically works with Firefox / Chrome) Or any others with editing host file?

  1. Update URLs and hostnames in .env file.
  2. Generate certificates for new hostname (See Local TLS).
  3. docker-compose up -d

Redis

Configuration Export/Import

Config YAML will be exported to ./config/, alternatively use MySQL dump and auto restoration per below.

Local TLS

Why local HTTPS? Just because! Also Secure Cookies! And other things probably.

More certificates can be defined in traefik/config/certificates.yaml.

MySQL Dump

Dump the MySQL database from the PHPCLI container so the setup can be restarted.

The dump will be automatically imported if you docker-compose down then restart the application. The app will take a few extra seconds to be ready. Tail the database log with docker-compose logs -f db to track progress.

Mailhog

Mailhog will capture emails sent by Drupal. There is no need to configure Drupal as sendmail_path is configured.

Mailhog is accessible at https://localhost/mailhog/

Traefik

Dashboard is accessible at https://localhost/traefik/

Development

PHPStan

Optionally customise PHPStan configuration with cp phpstan.neon.dist phpstan.neon. The .dist file will be used by default.

PHPCS

Optionally customise PHPCS configuration with cp phpcs.xml.dist phpcs.xml. The .dist file will be used by default.

PHPUnit

Optionally customise PHPUnit configuration with cp phpunit.xml.dist phpunit.xml. The .dist file will be used by default.

Blackfire

Define client and server ID and tokens in .env.

Web profiling

Browser extension

Enable the browser extension as normal.

Navigate to the page you wish to profile, and click 'Profile!' button.

Note: does not work properly if you're using Firefox container tabs. Use a container-less tab when profiling in Firefox.

Docker compose

docker-compose exec blackfire blackfire curl http://nginx:8080/

Blackfire CLI app

Blackfire client (blackfire) is built into the PHP CLI container (Dockerfile-php-cli):

CLI app profiling


All versions of drupal-local with dependencies

PHP Build Version
Package Version
Requires composer/installers Version ^2
cweagans/composer-patches Version ^1
drupal/admin_toolbar Version ^3.1.1
drupal/core Version ^10.1
drupal/core-composer-scaffold Version ^10.1
drupal/core-project-message Version ^10.1
drupal/redis Version 1.x-dev
drush/drush Version ^11.2.1@rc
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 dpi/drupal-local contains the following files

Loading the files please wait ....