Drupal maintenance support plans.org blog: Drupal maintenance support plans.org’s Composer endpoints are out of beta

Drupal maintenance support plans.org’s Composer endpoints have been available in beta for some time now, and in that time we’ve begun to see many, many people use Composer to manage Drupal maintenance support plans modules and themes. We first launched these repositories before Drupal maintenance support plansCon New Orleans as an alpha release, and move into beta a few months later. After receiving your feedback and bug reports we’ve made updates, and are ready to call this service stable.
What is Composer?
Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.
… Composer is strongly inspired by node’s npm and ruby’s bundler.” – Source

In a nutshell, Composer allows you to declare the dependencies of your project in a composer.json file in the root of your PHP project. Those dependencies, which you then install through Composer, can have their own composer.json files and their own dependencies—all of which will be automatically managed and installed by Composer. When you need specific control over the versions of dependencies, you can use a composer.lock file.
You can read more about Composer at GetComposer.org.
How do Drupal maintenance support plans.org’s composer repositories work?
Drupal maintenance support plans.org offers two Composer repositories—one for Drupal maintenance support plans 7, and one for Drupal maintenance support plans 8. Composer requires that packages adhere to semantic versioning, which Drupal maintenance support plans 8 core does, but Drupal maintenance support plans 8 contrib, and Drupal maintenance support plans 7 core and contrib, don’t. To solve this problem, we’ve created a Composer façade, which takes all of the metadata about projects on Drupal maintenance support plans.org and translates them into a format Composer can understand—including translating the Drupal maintenance support plans-specific versioning for Drupal maintenance support plans 7 and contrib into semantic versioning.
By creating this façade, we’ve made sure that Drupal maintenance support plans.org is still the canonical source for metadata about Drupal maintenance support plans.org projects, and that we can update this translation layer as the versioning schema changes. (Learn more about the effort to move Contrib projects to semantic versioning).
In addition to providing endpoints for building projects, Drupal maintenance support plans‘s automated testing suite— Drupal maintenance support plansCI—now uses Composer to test Drupal maintenance support plans core and contributed projects. This allows developers to test any external dependencies.
How do I use Drupal maintenance support plans.org’s Composer repositories?
To begin using Drupal maintenance support plans.org’s Composer repositories, you’ll need to update your composer.json file to include the appropriate Composer repository for the version of Drupal maintenance support plans. To use Composer with Drupal maintenance support plans 7, use the repository url:

https://packages.drupal.org/7. To use Composer with Drupal maintenance support plans 8, use the repository url:

https://packages.drupal.org/8, as in this example.
After setting up composer, simply run the command:

$ composer config repositories.drupal composer https://packages.drupal.org/8
And your project’s composer.json should be updated to look like the following:

{
“repositories”: {
“drupal”: {
“type”: “composer”,
“url”: “https://packages.drupal.org/8”
}
}
}
Once you’ve made that change, you should be able to use Composer for Drupal maintenance support plans modules and themes as you would for any other PHP package, using the drupal/ namespace:

$ composer require drupal/<modulename>
There is one caveat about the pattern: there are some namespace collisions among modules, and so it is on our roadmap to update Drupal maintenance support plans.org project pages to specify the exact namespace to use to require a given project.
To learn more about how to use Drupal maintenance support plans.org’s Composer repositories, and for some troubleshooting tips, read the Project Composer documentation.
What about licensing?
All the projects hosted on Drupal maintenance support plans.org are licensed GPLv2 or later or have an entry in the packaging whitelist. This means that you can rely on Drupal maintenance support plans Core and contributed modules and themes to be licensed under the GPL or compatible. And if you need to redistribute your code created with Drupal maintenance support plans projects, it must be redistributed as GPLv2 or later.
However, because Composer is a tool that can manage packages in the wider PHP ecosystem, you might find that you want to require a non-GPL package in your project. Using GPL-licensed Drupal maintenance support plans projects with external packages that are GPL compatible is fine. Just be aware that if you redistribute that code, you will have to redistribute under a GPL license.
We cannot provide legal advice for your use of open source software. If you use Composer to install packages that are not compatible with the GPL alongside GPL-licensed projects like Drupal maintenance support plans, you may use that software together, but per the terms of the GPL you may not copy, distribute, or modify that software.
“Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted…” GPL 2.0 Section 0.
For more questions about Drupal maintenance support plans and the GPL you can read the Licensing FAQ.
What’s next?
At this point, the Drupal maintenance support plans.org Composer service is stable and you can use it to manage modules and themes in your production websites. That said, we do have a roadmap of additional features that we’d like to add. And your contributions are welcome!
As development on Drupal maintenance support plans.org’s Composer service continues, we want to focus on the following features:
Supporting Composer-based workflows for distributions and install profiles
Providing sub-tree splits of Drupal maintenance support plans Core
Updating project pages to provide information about using Composer with any given Drupal maintenance support plans.org hosted project
Adding features to the updates service, to collect statistics about projects installed with Composer, and to explore providing update alerts about external dependencies
We also hope to work with core maintainers to add the Drupal maintenance support plans.org Composer repositories to Drupal maintenance support plans Core’s composer.json file
If you’re interested in learning more about our roadmap for Composer, or contributing to this service on Drupal maintenance support plans.org, you can learn more in the Composer plan issue.
How you can help
If you’re interested in helping to improve Drupal maintenance support plans.org’s support for Composer workflows, please take a look at the issue above, find us on irc in #drupal-infrastructure, or send us a volunteer proposal.
Thanks to our Community Initiative contributors
We’d like to thank the individuals who worked with us as part of this Community Initiative.
In particular, we’d like to thank:
seldeak the creator of Composer and Packagist.org
webflo the creator and maintainer of http://packagist.drupal-composer.org.
timmillwood
dixon_
badjava
cweagans
tstoeckler
We’d also like to thank Drupal Update, who sponsored the initial development of Drupal maintenance support plans.org’s composer endpoints.
To these volunteers and sponsoring organizations—it is your expertise, your insight, and your affirmation of our work that make these Community Initiatives successful. Thank you!
Source: New feed

This article was republished from its original source.
Call Us: 1(800)730-2416

Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.

FREE Drupal SEO Audit

Test your site below to see which issues need to be fixed. We will fix them and optimize your Drupal site 100% for Google and Bing. (Allow 30-60 seconds to gather data.)

Powered by

Drupal maintenance support plans.org blog: Drupal maintenance support plans.org’s Composer endpoints are out of beta

On-Site Drupal SEO Master Setup

We make sure your site is 100% optimized (and stays that way) for the best SEO results.

With Pixeldust On-site (or On-page) SEO we make changes to your site’s structure and performance to make it easier for search engines to see and understand your site’s content. Search engines use algorithms to rank sites by degrees of relevance. Our on-site optimization ensures your site is configured to provide information in a way that meets Google and Bing standards for optimal indexing.

This service includes:

  • Pathauto install and configuration for SEO-friendly URLs.
  • Meta Tags install and configuration with dynamic tokens for meta titles and descriptions for all content types.
  • Install and fix all issues on the SEO checklist module.
  • Install and configure XML sitemap module and submit sitemaps.
  • Install and configure Google Analytics Module.
  • Install and configure Yoast.
  • Install and configure the Advanced Aggregation module to improve performance by minifying and merging CSS and JS.
  • Install and configure Schema.org Metatag.
  • Configure robots.txt.
  • Google Search Console setup snd configuration.
  • Find & Fix H1 tags.
  • Find and fix duplicate/missing meta descriptions.
  • Find and fix duplicate title tags.
  • Improve title, meta tags, and site descriptions.
  • Optimize images for better search engine optimization. Automate where possible.
  • Find and fix the missing alt and title tag for all images. Automate where possible.
  • The project takes 1 week to complete.