//! Composer — the PHP dependency manager.

use std::path::Path;
use std::process::Command;

/// Detected via `composer.json`.
pub(crate) fn detect(dir: &Path) -> bool {
    dir.join("composer.json").exists()
}

/// `composer install`
pub(crate) fn install_cmd() -> Command {
    let mut c = super::program::command("composer");
    c.arg("install");
    c
}
