Question about Composer

Is necesary to run composer any time we need to have a new istallation of the new themes?

I will learn how to use it, but i would like to know if Is not possible to use PB without Composer.

thanks

Yes, it is possible. The GitHub Updater plugin lets you update all of our plugins and themes without requiring composer.

That being said, managing your WordPress/Pressbooks install with Composer has some real advantages, particularly in terms of clear dependency management. We do so. See here.

Ok. once I learn, I will create a tutorial on github for dummies. can I?

A couple excellent resources already exist:

1 Like

I´m a litle lost about composer.

Now, I download the PB Books from github, then i do upload in my site.

Once the files are on place, I go to the terminal and I find the wp folder where I have installed PB:
cd /var/www/vhosts/server.es/pressbooks.server.es

Once I´m on the place, i have to run composer:
require pressbooks/pressbooks-book.

that´s it?

can i run composer without download and upload the theme? it will download automaticaly composer and install? or I should do it?

thanks.

You definitely don’t need to do both!

If you are managing your site with composer, you would log in to your server via SSH and then run the following command from your web root:

composer require pressbooks/pressbooks-book

If you aren’t managing your site with composer, you would download the latest release (the first file, a zip with the version number in the file name, e.g. pressbooks-book-1.10.0.zip) and simply upload it to your /themes directory.

For more information:

2 Likes

thanks for the information

This resource is also good:

Guide to Composer in WordPress http://composer.rarst.net/