All Projects → webcreate → vcs

webcreate / vcs

Licence: MIT License
PHP interface for version control systems

Programming Languages

PHP
23972 projects - #3 most used programming language

Labels

Projects that are alternatives of or similar to vcs

Vcs
VCS Repo management through a common interface in Go
Stars: ✭ 171 (+189.83%)
Mutual labels:  svn, vcs
libvcs
⚙️ Lite, typed, pythonic utilities for git, svn, mercurial, etc.
Stars: ✭ 43 (-27.12%)
Mutual labels:  svn, vcs
Source Integration
Source control integration plugin framework for MantisBT, including support for Github, Gitlab, Bitbucket, Gitweb, Cgit, Subversion, Mercurial and more
Stars: ✭ 167 (+183.05%)
Mutual labels:  svn, vcs
Vcspull
🔄 synchronize projects via yaml/json manifest. built on libvcs
Stars: ✭ 187 (+216.95%)
Mutual labels:  svn, vcs
tech-share
每周技术分享,点击watch,更新时收到推送
Stars: ✭ 17 (-71.19%)
Mutual labels:  svn
ohloh scm
The Ohloh source control management library
Stars: ✭ 58 (-1.69%)
Mutual labels:  svn
FSDevTools
Project to support developer experience (DX) with FirstSpirit template development by offering a connection between a VCS like Git and FirstSpirit.
Stars: ✭ 29 (-50.85%)
Mutual labels:  vcs
logivi
Git visualisation software written in Lua.
Stars: ✭ 16 (-72.88%)
Mutual labels:  vcs
svn2git
Tool to help and automate migration from SVN to GitLab
Stars: ✭ 34 (-42.37%)
Mutual labels:  svn
gitarena
Software development platform with built-in vcs, issue tracking and code review
Stars: ✭ 26 (-55.93%)
Mutual labels:  vcs
Crema
Meta data server & client tools for game development
Stars: ✭ 61 (+3.39%)
Mutual labels:  svn
6502.ts
Emulators for MOS 6502 based systems written in TypeScript
Stars: ✭ 50 (-15.25%)
Mutual labels:  vcs
VBA-Import-Export
Export & Import VBA code for use with Git (or any VCS)
Stars: ✭ 14 (-76.27%)
Mutual labels:  vcs
powerbi-vcs
WIP (properly) version control and collaborate on your *.pbi{tx} files
Stars: ✭ 78 (+32.2%)
Mutual labels:  vcs
silver-platter
Automate the creation of merge proposals for scriptable changes
Stars: ✭ 19 (-67.8%)
Mutual labels:  vcs
proxychanger
Go tool to change system and applications proxy
Stars: ✭ 15 (-74.58%)
Mutual labels:  svn
docker-svn-server
A Docker image running a simple Dockerised Subversion server, using `svnserve`.
Stars: ✭ 27 (-54.24%)
Mutual labels:  svn
mdlr
MDLR ("Modular") gives you declarative and easy Git 'submodules without the pain of submodules'
Stars: ✭ 26 (-55.93%)
Mutual labels:  vcs
compareWith
RStudio Addins for Enhanced Diff and Merge
Stars: ✭ 52 (-11.86%)
Mutual labels:  vcs
sql-source-control
Simple CLI for getting SQL into source control systems.
Stars: ✭ 49 (-16.95%)
Mutual labels:  svn

PHP interface for version control systems

Webcreate\Vcs is an interface for PHP for working with various version control systems, like SVN, GIT, etc.

This library was created as part of Conveyor.

Build Status

Installation / Usage

  1. Download the composer.phar executable or use the installer.

    $ curl -s https://getcomposer.org/installer | php
  2. Create a composer.json defining your dependencies.

    {
        "require": {
            "webcreate/vcs": "dev-master"
        }
    }
  3. Run Composer: php composer.phar install

Getting started

Webcreate\Vcs is build around a single interface, the VcsInterface. This interface contains methods to work with a version control system.

This libary currently contains two implementations of the interface: Svn and Git.

Lets say you want to get the latest commits from git. Here is an example:

// Example R1
use Webcreate\Vcs\Git;

$git = new Git('https://someserver/somerepo.git');

// Retrieve the 20 latest commits for master
$result = $git->log('.', null, 20);
foreach($result as $commit) {
    $date        = $commit->getDate();      // returns \DateTime instance
    $author      = $commit->getAuthor();    // returns "John Doe"
    $revision    = $commit->getRevision();  // returns "1a410efbd13591db07496601ebc7a059dd55cfe9"
    $message     = $commit->getMessage();   // returns "commit message"
}

Full documentation is available in docs/.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].