drupal / devel
Various blocks, pages, and functions for developers.
5.1.2
2023-06-06 13:48 UTC
Requires
- php: >=7.4
- doctrine/common: ^2.7 || ^3.4
- symfony/var-dumper: ^4 || ^5 || ^6
Requires (Dev)
- drush/drush: ^11
Suggests
- kint-php/kint: Kint provides an informative display of arrays/objects. Useful for debugging and developing.
Conflicts
- kint-php/kint: <3
- 5.x-dev
- 5.1.2
- 5.1.1
- 5.1.0
- 5.0.2
- 5.0.1
- 5.0.0
- 5.0-beta1
- 4.x-dev
- 4.2.1
- 4.2.0
- 4.2.0-beta1
- 4.1.5
- 4.1.4
- 4.1.3
- 4.1.2
- 4.1.1
- 4.1.0
- 4.0.1
- 4.0.0
- 4.0.0-rc1
- dev-refs
- dev-fix-webprofiler-test
- dev-395-terms-with-deleted-parent-ids
- dev-394-when-generating-terms-pass-the-devel_generate-settings-to-3rd-party-hooks
- dev-remove-min-stablility
- dev-use-1.6.0
- dev-8.x-3.x
- dev-8.x-2.x
- dev-refactor-gitlab-ci.yml
- dev-composer-runserver
- dev-scrutinizer
- dev-add-code-quality
- dev-no-cd
- dev-add-gitlab-pipeline
- dev-8.x-1.x
- dev-testing
This package is not auto-updated.
Last update: 2023-09-30 16:00:37 UTC
README
[[TOC]]
Introduction
Devel module contains helper functions and pages for Drupal developers and inquisitive admins:
- A block and toolbar for quickly accessing devel pages
- A menu tab added to entities to give access to internal entity properties
- Urls created to view the internal entity properties even when there is no menu tab, for example /devel/paragraph/n
- Debug functions for inspecting a variable such as
dpm($variable)
- Debug a SQL query
dpq($query
or print a backtraceddebug_backtrace()
- A block for masquerading as other users (useful for testing)
- A mail-system class which redirects outbound email to files
- Drush commands such as
fn-hook
,fn-event
,token
,uuid
, anddevel-services
- Devel Generate. Bulk creates nodes, users, comment, taxonomy, media, menus for development. Has Drush integration.
This module is safe to use on a production site. Just be sure to only grant access development information permission to developers.
Collaboration
- https://gitlab.com/drupalspoons/devel is our workplace for code, MRs, and CI. See DrupalSpoons for more info.
- Drupalspoons auto-pushes back to git.drupalcode.org in order to keep Security Team coverage and packages.drupal.org integration.
- Chat with us at #devel on Drupal Slack.
Local Development
- Clone devel
git clone https://gitlab.com/drupalforks/devel.git
(note - this is the shared fork, not the "spoon") cd devel
- Install the composer plugin from https://gitlab.com/drupalspoons/composer-plugin. Your source tree now looks like:
- Configure a web server to serve devel's
/web
directory as docroot. Either of these works fine:vendor/bin/spoon runserver
- Setup Apache/Nginx/Other. A virtual host will work fine. Any domain name works.
- Configure a database server and a database.
- Install a testing site
vendor/bin/spoon si -- --db-url=mysql://user:pass@localhost/db
. Adjust as needed.
Testing
- CI docs gives info on running tests.
- See develCommandsTest.php for an example of Drush command testing. This uses Drush Test Traits.
Version Compatibility
Devel version | Drupal core | PHP | Drush |
---|---|---|---|
5.x | 9,10 | 7.4+ | 11+ |
4.x | 8.9+,9 | 7.2+ | 9+ |
8.x-2.x | 8.x | 7.0+ | 8+ |
Maintainers
See https://gitlab.com/groups/drupaladmins/devel/-/group_members.