| Recommend this page to a friend! |
| Info | Example | Reputation | Support forum | Blog | Links |
| Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
| 2025-05-08 (11 hours ago) | Total: 148 | All time: 9,113 This week: 40 | ||||||
| Version | License | PHP version | Categories | |||
| git-provider 0.12 | BSD License | 5.4 | PHP 5, Files and Folders, Project Man... |
| Description | Author | |
This class is a wrapper around the git command to manipulate Git repositories. |
<?php |
This package provides an easy to use git client class for PHP. Here a small example to show the features:
$path = "/path/to/where/you/want/to/work/on/your/repo";
$provider = new GitProvider($path);
// Create a shared bare repository
$provider->create(true, true);
// Set the author of the repo
$provider->setAuthor("John Doe", "[email protected]");
// Provide a project name
$provider->setProjectName('A test repository');
// Some data to repository (file must exist)
$provider->addToIndex("README.md");
// Commit your changes with a speaking message
$provider->commit("Added README");
| File | Role | Description | ||
|---|---|---|---|---|
| Data | git ignore configuration | |||
| Data | Travis Ci configuration | |||
| Data | Ant build script | |||
| Data | Composer control file | |||
| Lic. | License | |||
| Data | PHP Codesniffer configuration | |||
| Data | phpdox configuration | |||
| Data | PHP Messdetection configuration | |||
| Data | PHPUnit configuration | |||
| Data | Readme | |||
| / | contrib |
| File | Role | Description |
|---|---|---|
| |
Data | Contributed schema for code sniffer configuration |
| |
Data | Contributed schema for phpunit configuration |
| / | example |
| File | Role | Description |
|---|---|---|
| |
Data | git ignore |
| |
Example | Basic example |
| / | src |
| File | Role | Description |
|---|---|---|
| |
Class | The main class |
| |
Class | Derived exception |
| / | tests | / | provider-tests |
| File | Role | Description |
|---|---|---|
| |
Test | Unit test |
| |
Test | Unit test |
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
| git-provider-2025-05-08.zip 15KB | |
| git-provider-2025-05-08.tar.gz 11KB | |
| Install with Composer |
| Needed packages | ||
| Class | Download | Why it is needed | Dependency |
|---|---|---|---|
| PHP Generics | Several general purpose classes such as Directory and logging exists already there | Required |
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% |
|
|
| User Ratings | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
| Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
| Related pages |
| Dynamic generated API documentation |
| Unit test code coverage statistics |