Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi again,
Was wondering if you would consider making it possible to install this module via the non developer route of module and library installs in Drupal for us designers and builders. Module being enabled, sendgrid API library being put into libraries directory, api key being entered in third party system - and that's it.
Therefore making the composer manager an alternative method of install for non-drush and composer users?
Many thanks for your time
Comments
Comment #2
Perignon CreditAttribution: Perignon commentedHello,
No, I had not planned on supporting libraries install method because D8 also requires Composer to operate as well. I had thought about it but canceled the idea since I have other higher priority work, such as porting to D8. And comparatively, Composer is FAR easier to use than the old method of using the libraries module. If you have Drush available, I would suggest using it. I can also maintain the API compatibility better with Composer than I can with Libraries. Libraries will not retrieve new versions of code for you.
Comment #3
kingfisher64 CreditAttribution: kingfisher64 commentedI see, will have a look at how to get this setup and installed. Do have a vps with command line access - used to have drush for drupal 7 working on an old server tried drush with drupal 8 but didn't get that working.
Tutorial time :)
Thanks for replying
Comment #4
Perignon CreditAttribution: Perignon commentedMake sure you use dev-master for Drush with Drupal 8 or at least Drush version 8.0.5.
The easiest way to use Drush is to install it globally with Composer, IMHO. http://www.drush.org/en/master/install-alternative/
Setting up Composer is also super easy, but if you are using a VPS I am willing to bet Composer is already setup for you.
Comment #5
kingfisher64 CreditAttribution: kingfisher64 commentedgot this working. when a field is left blank like reply to the following is output. only a small issue.
Notice: Undefined index: fromname in sendgrid_integration_test() (line 27 of sites/all/modules/sendgrid_integration/sendgrid_integration.admin.inc).
thanks for the module.
Comment #6
Juc1 CreditAttribution: Juc1 commentedHI all,
"Installation" on https://www.drupal.org/project/sendgrid_integration says "4. Update dependencies via Drush and Composer Manager" - can anyone please provide some more detailed installation instructions for people who have not used Composer before ?
Comment #7
Perignon CreditAttribution: Perignon commentedComposer manager allows you to run composer commands within the confines of Drupal. I guess it isn't very well documented in Composer Manager. It's located in their documentation, but rather suttle.
It's basically this:
drush composer-manager COMMAND OPTIONS
Where command and options is composer command and options. Composer has extensive documentation.
To perform an update you would:
drush composer-manager update
Within your Drupal instalation.
Comment #10
Perignon CreditAttribution: Perignon commentedAdded links to README.
Comment #11
Perignon CreditAttribution: Perignon commentedComment #12
kingfisher64 CreditAttribution: kingfisher64 commentedShould have probably added that it's basically
"composer require fastglass/sendgrid" in sites/all/
https://packagist.org/packages/fastglass/sendgrid
Comment #13
Perignon CreditAttribution: Perignon commentedYeah I can add that to the Readme. But you still have to use Composer Manager module so that the libraries get loaded into Drupal properly since D7 doesn't have native Composer support like D8 does.
Comment #14
maxplus CreditAttribution: maxplus commentedHi,
maybe interesting for people that have shared hosting without command line access and they can not use Composer Manager but they really want to use Sendgrid.
You can also use Sendgrid in combination of the SMTP Authentication Support module (https://www.drupal.org/project/smtp).
All info is found here: https://sendgrid.com/docs/Integrate/Open_Source_Apps/drupal.html
Summary:
Open your modules page, find the SMTP module, and configure it with the following settings:
Comment #15
wibcon CreditAttribution: wibcon commented@Kingfisher64 thanks for posting
The command
drush composer-manager update --no-dev
was not working to install the sendgrid_integration API. I useddrush composer-manager require fastglass/sendgrid
and was able to install the sendgrid_integration module.Comment #16
Spanners CreditAttribution: Spanners as a volunteer commentedConfirming that this worked for me also.
composer require fastglass/sendgrid
Comment #17
gatorjoe CreditAttribution: gatorjoe as a volunteer commentedAlso confirming #15. Unable to use the readme instructions to install, but
drush composer-manager require fastglass/sendgrid
does work.Comment #18
thechanceg CreditAttribution: thechanceg commentedConfirming that #15 works while the command listed in the readme does not.
Comment #19
coderider CreditAttribution: coderider as a volunteer commentedConfirming that #15 works while the command listed in the readme does not.
But lost more than 8 hours only because of not well documented readme
Comment #20
cycas CreditAttribution: cycas commented+ another one for #15. This is quite a headache to set up. Flashbacks to 2005.
Comment #21
devad CreditAttribution: devad as a volunteer commentedJust cross-posting for those who need.
D8 version can be used without composer as well - with the help of Ludwig module.
Here is the most recent update:
#3174909: Fix and update Ludwig integration