PHPackages                             khalyomede/dependency-scanner - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. khalyomede/dependency-scanner

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

khalyomede/dependency-scanner
=============================

Returns a list of packages available for updates.

v0.1.0(6y ago)12MITPHPPHP &gt;=7.0.0CI failing

Since May 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/khalyomede/dependency-scanner)[ Packagist](https://packagist.org/packages/khalyomede/dependency-scanner)[ RSS](/packages/khalyomede-dependency-scanner/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (2)Used By (0)

dependency-scanner
==================

[](#dependency-scanner)

Returns a list of packages available for updates.

[![Packagist License](https://camo.githubusercontent.com/a5ad542ddb0bb8783a5c22e3d508d0cea928a4a6d66a82cc874e2bd800530dfd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6b68616c796f6d6564652f646570656e64656e63792d7363616e6e6572)](https://camo.githubusercontent.com/a5ad542ddb0bb8783a5c22e3d508d0cea928a4a6d66a82cc874e2bd800530dfd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6b68616c796f6d6564652f646570656e64656e63792d7363616e6e6572) [![Packagist Version](https://camo.githubusercontent.com/edcaf6ee9da8bf0db7ddc6b7f09430ac0d75c1c6294b06f18eda95ce3ea5bdf5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b68616c796f6d6564652f646570656e64656e63792d7363616e6e6572)](https://camo.githubusercontent.com/edcaf6ee9da8bf0db7ddc6b7f09430ac0d75c1c6294b06f18eda95ce3ea5bdf5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b68616c796f6d6564652f646570656e64656e63792d7363616e6e6572) [![Packagist PHP Version Support](https://camo.githubusercontent.com/2f793aaa8df054d0924e19df5ac4e1160399c8de72067c7c21cb648bbfed8815/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6b68616c796f6d6564652f646570656e64656e63792d7363616e6e6572)](https://camo.githubusercontent.com/2f793aaa8df054d0924e19df5ac4e1160399c8de72067c7c21cb648bbfed8815/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6b68616c796f6d6564652f646570656e64656e63792d7363616e6e6572) [![Build Status](https://camo.githubusercontent.com/da6f85cd1fb86c53a024306b1e19fa57ebc2e2b1f5ae192d5b0f55999e0f14f7/68747470733a2f2f7472617669732d63692e636f6d2f6b68616c796f6d6564652f646570656e64656e63792d7363616e6e65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/khalyomede/dependency-scanner) [![Maintainability](https://camo.githubusercontent.com/0627c0860734c5c4ae4b4d5a227dd0b30182484ca9d21ab4f9d484c8a4e76f3e/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f32323363363435326235373338656563666562322f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/khalyomede/dependency-scanner/maintainability)

Summary
-------

[](#summary)

- [About](#about)
- [Features](#features)
- [Requirements](#requirements)
- [Installation](#installation)
- [Examples](#examples)
- [API](#api)
- [Changelog](CHANGELOG.md)

About
-----

[](#about)

I searched for a package that could provide the same feature some package offer using the command line.

My goal is to display a web page on my web app with a vision of package up to date to help (advanced) users require the administrator help to update packages if needed.

Features
--------

[](#features)

- Scan for your installed packages in the `composer.lock` file and returns the last available version for it
- Respect your `composer.json` requirements version

Requirements
------------

[](#requirements)

- PHP &gt;= 7.0.0
- `composer.lock` alongside your `composer.json` published and ready to be read
- An internet connection (because this library requests Packagist API)

Installation
------------

[](#installation)

In your console, install this package.

```
composer require khalyomede/dependency-scanner
```

Examples
--------

[](#examples)

- [1. Getting started](1-getting-started)
- [2. Specify custom file paths](2-specify-custom-file-paths)

### 1. Getting started

[](#1-getting-started)

In this example, we will use the default configuration to find the file `composer.json` and `composer.lock` and get a list of key pair of out of date packages.

```
