Download the PHP package eaudeweb/heavy-lifter without Composer
On this page you can find all versions of the php package eaudeweb/heavy-lifter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download eaudeweb/heavy-lifter
More information about eaudeweb/heavy-lifter
Files in eaudeweb/heavy-lifter
Package heavy-lifter
Short Description Common commands for your Drupal project to get you up to speed
License Apache-2.0
Informations about the package heavy-lifter
Heavy-lifter
Doing the heavy lifting for local Drupal development.
Installation
https://packagist.org/packages/eaudeweb/heavy-lifter
Drupal 8
-
Install the heavy-lifter with composer :
composer require eaudeweb/heavy-lifter
-
Execute the configuration script for heavy-lifter :
./vendor/bin/robo site:config
-
Copy
example.robo.yml
torobo.yml
, customize the username and password to the ones provided by system administrator - (Optional) You can add excluded drush commands to any of heavy-lifter's robo commands in
robo.yml
Example :
- (Optional) You can add extra drush commands to any of heavy-lifter's robo commands in
robo.yml
Example:
- Execute
./vendor/bin/robo sql:sync
to see if the installation successfully worked
Drupal 7
The installation guideline on Drupal 7 is the same as the one on Drupal 8, just a few observations are necessary:
- Not all the available robo commands are available for Drupal 7 websites. (Some commands commit modifications available only to Drupal 8 websites and therefore have not been implemented/tested on Drupal 7)
How to use it inside a project
Note: You run all commands from the project's root folder (i.e. where you store the web/
folder).
-
Copy
example.robo.yml
torobo.yml
and customize the username and password to the ones provided by system administrator -
Get the database dump and import:
./vendor/bin/robo sql:sync
-
Update the site's configuration and database :
./vendor/bin/robo site:update
-
Get the files archive:
./vendor/bin/robo files:sync
-
Create archive with files directory to the given path :
/vendor/bin/robo files:dump [destination]
-
Enable development:
./vendor/bin/robo site:develop
- Download the database dump from the remote storage, without importing it :
/vendor/bin/robo sql:download [destination]
Custom development scripts
If you want to run custom drush scripts at the end of the site:develop command, add these scripts in the PROJECT/etc/scripts/develop folder.
Database anonymize
- Run
composer require eaudeweb/gdpr-dump
- Define your anonymize schema in an anonymize.schema.yml file, in the project root (in the same folder as robo.yml)
- Run
./vendor/bin/robo sql:dump --anonymize
Row values listed under ignored_values will not be anonymized.
anonymize.schema.yml example
Formatter types
- name - generates a name
- phoneNumber - generates a phone number
- username - generates a random user name
- password - generates a random password
- email - generates a random email address
- date - generates a date
- longText - generates a sentence
- number - generates a number
- randomText - generates a sentence
- text - generates a paragraph
- uri - generates a URI
- clear - generates an empty string
For more information about available formatters, check https://github.com/fzaninotto/Faker#formatters
Observations for Windows environment:
- only command
sql:dump
is available - robo path is
./vendor/consolidation/robo/robo
Multisite
For multisites, create another key under sites
in robo.yml
and configure it similar to sites:default
.
To run a command on a sub site, use the --site SITE
argument.
Example:
robo.yml:
./vendor/bin/robo sql:sync --site subsite
All versions of heavy-lifter with dependencies
php Version >=7.3
ext-json Version *
eaudeweb/robo-curl Version 2.0.0-alpha4