GithubHelp home page GithubHelp logo

andersonpem / phpmodver Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 15 KB

A PHP command line tool for handling nwidart/laravel-modules' Module version metadata with a single command in terminal instead of going after and editing files.

License: MIT License

Shell 7.27% PHP 92.73%
nwidart-modules terminal shorthand productivity composer

phpmodver's Introduction

P.M.V. - PHP (nWidart) Module Version Management Utility

Because coders (and the Sith) go for the easy and quick way

What this is for

This script allows you to change your nWidart's Laravel Module version metadata in composer.json and module.json without having to touch the files. Just Type a command, the version, and bam! You're done.

I always keep forgetting to change the version of the module in the files and sometimes it is just boring to go after each of the files and make the changes and save the files and then doing a commit. So I made this shorthand command to handle the file parts. That way we get more time to make our customers happy :)

How to use it

  • In a terminal, get to your laravel-module root folder.
  • Type: pmv arg [flags] in a terminal to manipulate your Module's versioning metadata.

Example

Suppose I have a laravel-module in which the current version is 0.2.0 and I want to change it to 0.3.0. Here's how:

$ /main-laravel-project/
$ cd Modules/my-awesome-module
$ /main-laravel-project/Modules/my-awesome-module pmv 0.3.0

[expected output]

ModuleName (packagist/modulename) is now at v0.3.0 in both Composer
and nWidart's Module files.

-------------------------------------------------
Changes have been persisted. You can pat yourself
in the back and have some coffee. ^^
-------------------------------------------------

Type pmv help to know the available commands and shorthand commands for this script.

How to Install

Please notice you have to have PHP installed in your machine to use this script

  • Clone this repo somewhere in your machine and get into the cloned repo's folder.
  • Make the installer executable (chmod +x install.sh)
  • Run the install file (./install.sh)
  • Be happy.

License

This script is licensed under the MIT license.

Contributing

Open an issue and make a pull request.

Contributors

AndersonPEM Script Creator

(It's lonely in here. Lemme grab some coffee ^^)

Support this project

Wanna buy me some coffee? Coffee is never enough XD

Have some bitcoin lying around? I have a wallet :) tip the project there:

1AuAt29skEdmtQBG4bJYEnHnbhVbpcZn

phpmodver's People

Contributors

andersonpem avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.