Recommend this page to a friend! |
![]() ![]() |
Info | ![]() |
![]() |
![]() ![]() |
Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2024-01-10 (3 days ago) ![]() | Not enough user ratings | Total: 147 This week: 1 | All time: 9,095 This week: 348![]() |
Version | License | PHP version | Categories | |||
git-provider 0.11 | 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", "john@doe.tld");
// 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 |
![]() | git-provider-2024-01-10.zip 15KB |
![]() | git-provider-2024-01-10.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% |
|
|
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 |