Composer is a dependency manager for PHP projects that allows installing dependencies and managing them per project. It determines a project's dependencies from the composer.json file, then recursively gets those and their dependencies, and installs them in the vendor folder. When composer install is run, it also generates a composer.lock file locking down the exact versions of each dependency.