2017 © Pedro Peláez
 

library debby

Debby checks your project dependencies and tells you when to update.

image

alsvanzelf/debby

Debby checks your project dependencies and tells you when to update.

  • Friday, September 30, 2016
  • by lode
  • Repository
  • 1 Watchers
  • 2 Stars
  • 50 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 11 Open issues
  • 16 Versions
  • 0 % Grown

The README.md

⚠️ ARCHIVED

This package is not maintained anymore. As an alternative you can use dependabot and github webhooks to get notifications., (*1)


Debby - stay on top of your dependencies

Debby checks your Composer & npm dependencies and tells you when to update., (*2)

  • always run the latest versions :shipit:
  • choose whether you find an update interesting
  • be able to fix security issues promptly

In the end, you'll be more comfortable upgrading because updates can be often and small., (*3)

Super fast setup :rocket:

``` sh composer require alsvanzelf/debby crontab -l | { cat; echo "0 8 * * * php /www/vendor/alsvanzelf/debby/notify.php repo token"; } | crontab -, (*4)


Replace `repo` with the path of your repository on GitHub (`organization/project`) and `token` with a [personal access token](https://github.com/settings/tokens). This runs Debby every day at 8 o'clock and create issues whenever updates are found. ## Setup in a normal pace, with a bit more explanation 1. [Install Debby](/README.md#1-installation) via Composer 2. [Configure notifications](/README.md#2-configure-notifications) to GitHub, Trello, Slack, email 3. [Setup a cronjob](/README.md#3-fire-up) (there's other ways as well, see below) Also check out [the questions Debby gets asked frequently](/README.md#faq). Or checkout :blue_book: [the documentation](https://github.com/lode/debby/wiki). #### 1. Installation [Use Composer](http://getcomposer.org/) to install Debby herself. Use require to get the latest stable version:

composer require alsvanzelf/debby, (*5)



#### 2. Configure notifications Debby can talk to ![GitHub issues](/channels/github.png) GitHub issues, ![Trello](/channels/trello.png) Trello, ![Slack](/channels/slack.png) Slack, and ![Email](/channels/email.png) email. Pick the channel(s) that you want notifications on, make a `debby.json` configuration file with the access details for these channels, and place it in the root of your project. I.e. for notifying to GitHub issues, use: ``` json { "notify_github": { "repository": "example/project", "token": "personal access token" } }

See the :blue_book: wiki on the specific configuration., (*6)

3. Fire up

Setup a cronjob to run the built-in notify script passing it your configuration file., (*7)

Run crontab -e and add:, (*8)

``` sh 0 8 * * * php /var/www/vendor/alsvanzelf/debby/notify.php /var/www/debby.json, (*9)


:thumbsup: Sit back and relax. Take a :coffee: or :tea: or :beer: ## FAQ #### Can I run it without a cronjob? You can call Debby from php and do what every you want. ``` php $options = [ 'notify_github' => [ 'repository' => 'example/project', 'token' => 'personal access token', ], ]; $debby = new debby\debby($options); $packages = $debby->check(); $debby->notify($packages);

See example/custom.php for a complete example., (*10)

I don't want to run Debby in production

You don't trust her? She's open source you know. Anyway, Debby runs just fine in a testing environment. No hard feelings. :heart: Just take into account that Debby will run just as fine while bisecting on old commits and notify you for updates since then. Also be-aware that Debby caches earlier notified packages, which might cause trouble when switching branches backwards., (*11)

Debby can not determine manage paths?

or, (*12)

Can I have composer.json outside the project root?

or, (*13)

I don't want to check [Composer|npm|...]

By default, Debby checks all package managers it can find. In some situations this doesn't work. I.e.:, (*14)

  • Debby is not installed via Composer herself.
  • The package manager json files are at custom locations.
  • You have a package manager which you don't want to have checked.
  • You use files which look like they are from package managers (i.e. a package.json when you don't use npm).

Then you'll need to adjust configuration to specify which managers you want to check, and where to find them., (*15)

I.e. for checking Composer, add the following to your debby.json:, (*16)

json "check_composer": { "path": "/path/to/composerjson/" }, (*17)

See the :blue_book: wiki on the specific configuration., (*18)

Why does Debby tell me to update above the composer constraint?

Debby will tell you about an update i.e. 2.0 when you require ^1.5. If you would run composer update yourself, that update won't show up. However, new releases might contain security updates also affecting your older version. For now, Debby defaults to telling you all these updates. You're welcome to help making Debby smarter in this, i.e. checking for security updates., (*19)

Contribute

Pull Requests or issues are welcome!, (*20)

License

MIT, (*21)

:girl:

By the way, Debby will tell when she needs an update herself. You don't need to do anything. :sparkles:, (*22)

The Versions

30/09 2016

dev-master

9999999-dev https://github.com/lode/debby

Debby checks your project dependencies and tells you when to update.

  Sources   Download

MIT

The Requires

  • php >=5.5

 

composer dependency

30/09 2016

v0.10.1

0.10.1.0 https://github.com/lode/debby

Debby checks your project dependencies and tells you when to update.

  Sources   Download

MIT

The Requires

  • php >=5.5

 

composer dependency

05/05 2016

v0.10.0

0.10.0.0 https://github.com/lode/debby

Debby checks your project dependencies and tells you when to update.

  Sources   Download

MIT

The Requires

  • php >=5.5

 

composer dependency

05/05 2016

v0.9.2

0.9.2.0 https://github.com/lode/debby

Debby checks your project dependencies and tells you when to update.

  Sources   Download

MIT

The Requires

  • php >=5.5

 

composer dependency

10/04 2016

v0.9.1

0.9.1.0 https://github.com/lode/debby

Debby checks your project dependencies and tells you when to update.

  Sources   Download

MIT

The Requires

  • php >=5.5

 

composer dependency

31/03 2016

v0.9

0.9.0.0 https://github.com/lode/debby

Debby checks your project dependencies and tells you when to update.

  Sources   Download

MIT

The Requires

  • php >=5.5

 

composer dependency

24/03 2016

v0.8.1

0.8.1.0 https://github.com/lode/debby

Debby checks your project dependencies and tells you when to update.

  Sources   Download

MIT

The Requires

  • php >=5.5

 

composer dependency

22/03 2016

v0.8

0.8.0.0 https://github.com/lode/debby

Debby checks your project dependencies and tells you when to update.

  Sources   Download

MIT

The Requires

  • php >=5.5

 

composer dependency

21/03 2016

v0.7

0.7.0.0 https://github.com/lode/debby

Debby checks your project dependencies and tells you when to update.

  Sources   Download

MIT

The Requires

  • php >=5.5

 

composer dependency

18/03 2016

v0.6

0.6.0.0 https://github.com/lode/debby

dependency checker for the interwebs

  Sources   Download

MIT

The Requires

  • php >=5.5

 

composer dependency

16/03 2016

v0.6-beta

0.6.0.0-beta https://github.com/lode/debby

dependency checker for the interwebs

  Sources   Download

MIT

The Requires

 

composer dependency

16/03 2016

v0.5

0.5.0.0 https://github.com/lode/debby

dependency checker for the interwebs

  Sources   Download

MIT

The Requires

 

composer dependency

16/03 2016

v0.4

0.4.0.0 https://github.com/lode/debby

dependency checker for the interwebs

  Sources   Download

MIT

The Requires

 

composer dependency

13/03 2016

v0.3

0.3.0.0 https://github.com/lode/debby

dependency checker for the interwebs

  Sources   Download

MIT

The Requires

 

composer dependency

13/03 2016

v0.2

0.2.0.0 https://github.com/lode/debby

dependency checker for the interwebs

  Sources   Download

MIT

The Requires

 

composer dependency

11/03 2016

v0.1

0.1.0.0 https://github.com/lode/debby

dependency checker for the interwebs

  Sources   Download

MIT

The Requires

  • php >=5.5

 

composer dependency