github.com/joey-fossa/fossa-cli@v0.7.34-0.20190708193710-569f1e8679f0/docs/integrations/composer.md (about)

     1  # Composer
     2  
     3  ## Support
     4  
     5  Composer support in FOSSA CLI depends on the following tools existing in your environment:
     6  
     7  - PHP (defaults to `php`, configure with `$PHP_BINARY`)
     8  - Composer (defaults to `composer`, configure with `$COMPOSER_BINARY`)
     9  
    10  ## Configuration
    11  
    12  ### Automatic
    13  
    14  Run `fossa init` to detect all instances of a `composer.json` file signaling the existence of a composer project located in your file tree.
    15  
    16  ### Manual
    17  
    18  Add a `composer` module with `dir` set to the directory where a `composer.json` file is located and `target` to the full path of the file.
    19  
    20  ```yaml
    21  analyze:
    22    modules:
    23      - name: your-composer-project
    24        type: composer
    25        dir: composer.json
    26        target: directory/composer.json
    27  ```
    28  
    29  ## Analysis
    30  
    31  Analysis parses the output of `composer show --tree` and turns it into a dependency graph.