Coder Social home page Coder Social logo

php-vendors's Introduction

php vendors - Simple script to manage vendors from git or svn

Project Status For PHP >= 5.3 projects, you should use Composer now.

php vendors is a simple dependencies manager based on original Symfony 2.0 Standard Edition vendors script.

This script should be used to manage dependencies from git or subversion repositories for PHP projects with PHP <= 5.2.

Installation / Usage

  1. Copy bin directory in your project root directory

  2. create a deps file in your project root directory

     [default]
         vendor= vendor       ; default vendor dir
         target=              ; default target dir
         externals= false     ; default externals config to retrieve dependencies proper VCS externals
     [<dependency name>]
         <git|svn>=<url>      ; type of repository and url
         version=             ; version to use
         vendor=              ; dependency specific vendor dir , overwrite default vendor dir
         target=              ; dependency specific target dir , overwrite default target dir
         externals=           ; dependency specific externals config , overwrite default externals config
    

dependencies are saved into <vendor>/<name> or <vendor>/<target> if <target> is not empty

example with a Symfony 1.4 project :

    [default]
        vendor = lib/vendor
        target =
        externals = false
    [symfony]
        git=https://github.com/symfony/symfony1.git
        version=v1.4.10
    [sfGuardPlugin]
        svn=http://svn.symfony-project.com/plugins/sfGuardPlugin/branches/1.3/
        vendor=plugins
    [sfPropelORMPlugin]
        git=https://github.com/propelorm/sfPropelORMPlugin.git
        vendor=plugins
        externals = true
  1. run bin/vendors script (.gitignore is updated)
  • To install

    bin/vendors install
    
  • To reinstall

    bin/vendors install --reinstall
    
  • To lock versions and write a deps.lock file

    bin/vendors lock
    
  • To update to latest versions

    bin/vendors update
    

Requirements

PHP >= 5.0

Authors

Fabien Potencier [email protected] for original Symfony 2.0 vendors script
Charles Sanquer [email protected]

License

php vendors is licensed under the MIT License - see the LICENSE file for details

php-vendors's People

Contributors

csanquer avatar

Stargazers

Maxime Corson avatar  avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

jrossini94

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.