• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Mastodon GitHub Twitter (inactive)
You are here: Home / Archives for composer

composer

Compare composer.json on Two Different Git Branches

Last updated on October 25, 2022 by Sal Ferrarello

I have composer.json files on two different branches and I want to compare their (non-dev) dependencies. This is the command I run to compare the “require” section of composer.json on my current branch to the “require” section of composer.json on another branch.

Filed Under: Dev Tips, Solution Tagged With: composer, Git, jq

SemVer TLDR

Last updated on April 3, 2021 by Sal Ferrarello

Semantic versioning (SemVer) is a standard for defining the version numbers. A version number consists of three numbers separated by periods (X.Y.Z). The type of change being introduced (e.g. a new feature or a change that breaks backwards compatibility) determines which numbers are incremented.

Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Computing, Dev Tips, Draft, Programming, Recommendations Tagged With: composer, npm, semver

composer.json and composer.lock out of sync

Last updated on December 11, 2019 by Sal Ferrarello

When I get the “Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.” message, I can update the hash in composer.lock, which is the root of the problem, by running ‘composer update –lock’.

Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Draft Tagged With: composer

Upgrade Composer – SHA384 is not supported by your openssl extension, could not verify the phar file integrity

Last updated on November 1, 2019 by Sal Ferrarello

Ideally, the PHP package manager Composer can update itself with the command composer self-update Unfortunately, when I ran this command I got [RuntimeException] SHA384 is not supported by your openssl extension, could not verify the phar file integrity This is a known issue (see Composer Issue 7669) but unfortunately the thread does not offer a […]

Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Dev Tips, Draft, Solution Tagged With: composer

Composer fail required PHP version

Last updated on November 22, 2019 by Sal Ferrarello

You can tell composer to install dependencies as if you’re using a specific version of PHP. This can be helpful if you’re running composer outside of your virtual machine (and your virtual machine has the correct PHP version but your host machine does not).

Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Dev Tips, Draft, Solution Tagged With: composer

Loading a Private WordPress Plugin with Composer

Last updated on February 4, 2017 by Sal Ferrarello

Previously, I described my process in loading WordPress.org plugins via composer, however, a number of plugins I use are private plugins (either because they are commercial plugins I’ve purchased or internal plugins I’ve written). One can use composer to load these plugins by doing two things: Create a repository for the plugin (this can be […]

Filed Under: Dev Tips, Programming Tagged With: composer, WordPress, WordPress Plugin

Install WordPress with Composer

Last updated on December 27, 2018 by Sal Ferrarello

You can setup WordPress in a sub-directory using composer, thanks to John P Bloch‘s WordPress Core Installer. Below I’ve outlined the bare minimum steps to get this running. Step 1: composer.json Create a composer.json in the root of your project with the following content. { “require”: { “johnpbloch/wordpress”: “*” } } Step 2: Execute composer […]

Filed Under: Dev Tips, Programming Tagged With: composer, WordPress

Composer WordPress.org Plugins

Last updated on March 10, 2017 by Sal Ferrarello

I’ve recently been introduced to managing WordPress.org plugins via Composer. This makes it more convenient when excluding plugins from your working repository. Composer is capable of doing far more than managing plugins but at this point, that is the extent of how I’m using it. This allows me to exclude my plugins via .gitignore yet […]

Filed Under: Dev Tips, Programming Tagged With: composer, WordPress, WordPress Plugin

Copyright © 2023 · Bootstrap4 Genesis on Genesis Framework · WordPress · Log in