Eric Sod, Senior Consultant, presented at the NYC Drupal Meetup on February 4th, featuring a tool he's helping to build for Drupal 8, The Console. The Console is designed to help folks quickly build modules for Drupal 8.
4. WE ARE BUSINESS
FOCUSED AND
TECHNOLOGY AGNOSTIC
STRIVING TO DELIVER THE
RIGHT SOLUTION TO OUR
CLIENTS
5. OUR CLIENTS
Below are a few of the companies we have helped succeed in the digital arena.
6. NorthPoint Digital’s team is experienced across a broad array of web
technologies, content management systems (CMSs), database technologies,
search tools, back-end integrations and front-end development tools.
OUR EXPERIENCE
7. NorthPoint Digital is headquartered in New York with
offices throughout the North East.
LOCATIONS
NEW YORK BOSTON PHILADELPHIA
10. The lead developers on the project:
David Flores
Indava
http://dmouse.net/
https://github.com/dmouse
https://github.com/hechoendrupal
Jesus Manuel Olivas
BlinkReaction
http://jmolivas.com
https://github.com/jmolivas
https://github.com/hechoendrupal
13. The Drupal Console is an effort to bring
the Symfony Console Component
to Drupal 8.
14. The Console is a CLI tool that
automates the creation of Drupal 8
modules and other recurring tasks.
15. Where do I find the project?
Project Landing page
http://drupalconsole.com/
On drupal.org
https://drupal.org/project/console
On github
https://github.com/hechoendrupal/DrupalAppConsole
16. How about docs and help?
Documentation at @gitbook
http://hechoendrupal.gitbooks.io/drupal-console/
Please RTFM and then ping us at @gitter
https://gitter.im/hechoendrupal/DrupalAppConsole
17. Out of the box
• Generates module and info files.
• Generates PSR-4 compliant directory structure for a module.
• Registers routes on YML files and maps to controllers and forms in PHP
Classes.
• Creates classes adding namespaces, uses and also extends and implements
keywords when required.
• Supports adding services using Dependency Injection on class generation.
18. Other Out of the box Commands
• Lists and shows configurations.
• Lists registered services on the service container.
• Lists registered routes on the routing system.
• Rebuilds routing system cache.
• Rebuilds site caches.
19. There are similar projects
Drupal Module Upgrader
https://www.drupal.org/project/drupalmoduleupgrader
Module Builder
https://www.drupal.org/project/module_builder
Drupal 8 Tools
https://github.com/anavarre/drupal-8-tools
A code generator for Drupal
https://github.com/danmatthews/drupal-code-generator
20. Unique Qualities of the Console:
• Console takes advantage of the Symfony Console Component.
• Console takes advantage of the Twig Component in order to generate
PHP, YML and other files.
• Console takes advantage of OOP and modern development practices.
• Console has no plans to support previous versions of Drupal.
22. Using the Installer
Install the Console locally by running the installer in your project directory:
$ curl -LSs http://drupalconsole.com/installer | php
To access console from anywhere on your system
$ mv console.phar /usr/local/bin/drupal
You can now execute console using:
$ drupal generate:module
23. Using Composer
You can use composer to install console globally using the following command:
$ composer global require drupal/console:@stable
Add the binary directory to your system path
$ echo "PATH=$PATH:~/.composer/vendor/bin" > ~/.bash_profile
You can now execute console using:
$ console
24. Demo time:
Demos are available at:
http://youtu.be/lpeFcBBIR0s
http://youtu.be/J0w1XWsxxFg
25. New York Office
130 West 42nd Street
New York, NY 10036
Tel: 212-819-1700
Boston Office
470 Atlantic Avenue
Boston, MA 02110
Tel: 617-725-8888
Philadelphia Office
1650 Market Street
Philadelphia, PA 19103
Tel: 215-558-2700
info@northpointdigital.com / www.northpointdigital.com / @northps
Thank you
Eric Sod
@EricSod
NorthPoint Digital
esod@northpointdigital.com
http://ericsod.net/
https://github.com/esod