AdaptCMS
  • Introduction
  • Basics
    • Terminology
    • Setup a Cloud Server
    • Web Hosts
  • Getting Started
    • Requirements
    • Installation
    • Upgrading
  • Core Packages
    • Auth
    • Base
    • Fields
    • Modules
    • Pages
    • Plugins
    • Site Types
  • Advanced
    • Creating Your Own Package
    • UI
    • Optimizing
  • Get Involved
    • Contributing
    • Coding Guidelines
    • PHP Developers
  • Technology
    • Composer
Powered by GitBook
On this page
  • How do I install it?
  • Now what?
  1. Technology

Composer

PreviousPHP Developers

Last updated 7 years ago

So what is "Composer" to begin with? It's a PHP library that allows developers to easily include other PHP software in a project. With AdaptCMS, we use composer to pull in a framework and third-party libraries for many parts of the website. It auto-loads in these libraries and allows us to easily use those libraries quickly.

How do I install it?

If your web server is running a newer version of Ubuntu, you should be able to install composer like this:

sudo apt-get install composer

If that doesn't do the trick, check out this guide:

Now what?

Okay, so if you type in "composer" into your terminal for your web server, you should see something like this:

If not, it may not be installed, see the above guide. If it is installed, navigate to the root of your site folder and run this command:

composer update --lock

That should be it!

https://www.digitalocean.com/community/tutorials/how-to-install-and-use-composer-on-ubuntu-14-04