• Stars
    star
    1,526
  • Rank 30,689 (Top 0.7 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 5 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Composer plugin to rise warnings on update, suggest migration processes

update-helper

Allow you to display update/upgrade instructions to your library users.

Usage

...
"require": {
    "kylekatarnls/update-helper": "^1"
},
"require-dev": {
    "composer/composer": "^1.2",
},
"extra": {
    "update-helper": "MyNamesapace\\MyUpdateHelper"
},
"scripts": {
    "post-autoload-dump": [
        "UpdateHelper\\UpdateHelper::check"
    ]
},
...
namespace MyNamesapace;

use UpdateHelper\UpdateHelper;
use UpdateHelper\UpdateHelperInterface;

class MyUpdateHelper implements UpdateHelperInterface
{
    public function check(UpdateHelper $helper)
    {
        $helper->write("You're using an obsolete version of my-super-package, consider upgrading to version 2 or greater.");

        if ($helper->hasAsDependency('laravel/framework') && $helper->isDependencyLesserThan('laravel/framework', '5.0.0')) {
            $helper->write("You're using a very old version or Laravel we don't support, please consider upgrading at least to 5.0.0.");
        }

        if ($helper->isInteractive()) {
            if ($helper->getIo()->askConfirmation('Do you want us to upgrade it for you?')) {
                $helper->setDependencyVersions(array(
                    'my-vendor/my-super-package' => '^2.0.0',
                    'laravel/framework' => '^5.0.0', // Skip it if not installed
                ))->update();
            }
        }
    }
}

More Repositories

1

business-day

Carbon mixin to handle business days
PHP
305
star
2

business-time

Carbon mixin to handle business days and opening hours
PHP
295
star
3

laravel-carbon-2

Carbon 2 adapter for Laravel
PHP
63
star
4

vicopo

API HTTP et Script pour trouver les villes à partir d'un code postal et code postaux à partir d'une ville
JavaScript
27
star
5

carbonite

Freeze, accelerate, slow down and much more with Carbon
PHP
19
star
6

enhanced-period

Provides enhanced Spatie\Period future from CarbonPeriod objects
PHP
18
star
7

uglify

PHP wrapper to execute uglify-js/clean-css node package or fallback to PHP alternatives
PHP
16
star
8

nodejs-php-fallback

Allow you to call node.js module or scripts throught PHP and call a fallback function if node.js is not available
PHP
16
star
9

stylus

PHP wrapper to execute stylus node package or fallback to a PHP alternative
PHP
11
star
10

simple-cli

A simple command line framework
PHP
10
star
11

try-carbon

Live demo of Carbon
PHP
9
star
12

sbp

SBP - Shorter Built PHP - Just in time PHP precompiler
PHP
9
star
13

ci-jade

Jade Template Engine for CodeIgniter
PHP
9
star
14

carbon-cli

CLI tool for Carbon
PHP
6
star
15

sudoku-solver

A fast PHP Sudoku solver
PHP
6
star
16

coffeescript

PHP wrapper to execute coffee-script node package or fallback to a PHP alternative.
PHP
5
star
17

js-transformer-php-wrap

PHP wrapper to call any js-transformer package
PHP
5
star
18

react

PHP wrapper to execute babel with react-jsx trasformer plugin or fallback to a PHP alternative.
PHP
4
star
19

less

PHP wrapper to execute less node package or fallback to a PHP alternative.
PHP
4
star
20

jade-phalcon

Jade Template Engine for Phalcon
PHP
4
star
21

jade-symfony

Pug (Jade) template engine for Symfony
PHP
4
star
22

php-easy-doc

An easy way to generate a static doc from HTML/Markdown/RST documentation files
PHP
4
star
23

multi-tester

Test multiple composer dependencies
PHP
4
star
24

season

DateTime modifiers such as startOfSeason, isInSummer
PHP
4
star
25

producthunt

Product Hunt OAuth2 Provider for Laravel Socialite
PHP
3
star
26

carbon-laravel

Carbon Laravel integration demo
PHP
3
star
27

momentum

Instant binding between server and connected clients
JavaScript
2
star
28

csrfprotect

PHP extension to handle easily a really reliable CSRF protection
PHP
2
star
29

business-time-api

Advanced business time handling with Carbon
PHP
2
star
30

utils

Composer utilities
PHP
2
star
31

morph

Generic tooling to compose transformations
PHP
2
star
32

nodehub

Listen 1 port, handle many virtual hosts
JavaScript
1
star
33

sgame

Game Framework
PHP
1
star
34

connect4.github.io

Connect4: Aligne 4 tokens
JavaScript
1
star
35

pdepend-dump

Dump PDepend AST
PHP
1
star
36

pug3

Pug PHP 3 adapter from the shinny new Phug into pug-php
1
star
37

connecthead

Multiusers oriented web framework
1
star
38

connect4

Multiplayers online and offline Node.js game, align 4 tokens in a row
JavaScript
1
star
39

simple-cli-example

PHP
1
star
40

insearch

Search In Your Intranet (Study Project)
PHP
1
star
41

ExtractTest

Shell
1
star
42

smart-thumbs

Take any pictures gallery, Add data-smart-thumbs attribute to your HTML block containing your images and Tadam! See all your pictures perfectly well aligned, same margin for each, all your lines with the same width.
1
star