Download the PHP package shadiakiki1986/git-data-repo without Composer

On this page you can find all versions of the php package shadiakiki1986/git-data-repo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package git-data-repo

git-data-repo

PHP library to manage the storage of key-value pairs in a git repository.

Packagist: Latest Stable Version Total Downloads License Monthly Downloads Daily Downloads composer.lock available

Travis CI: Build Status

Code Climate: Code Climate Test Coverage Issue Count

DEPRECATED

I notice often that the chown in composer.json post-install is a problem when I use the code from web with www-data user or from shell in docker with root user. This brings up the need for a separate server that is running with its own "stable" filesystem and file permissions. These would at least be independent of developments in the git-data-repo library, as well as composer install or composer update or whatever.

This SO answer proposes Orion Git API, which unfortunately is not open-source. Another answer on the same SO question noted that korya/node-git-rest-api was incomplete, but it met all my requirements for the server-side:

About the class TempFolder, I found that it is replaceable by https://github.com/php-cache/filesystem-adapter

About the class GitDataRepo, it is replaced by the following server-client architecture

Check the flysystem-git adapter repo for usage

Installing

composer install

Usage

Check tests/GitDataRepoTest.php

Testing Using SSH keys

  1. Create a repository on github/bitbucket/etc.
  2. initialize it

  3. make first commit echo "shadiakiki1986" >> contributors.txt git add contributors.txt git commit -m 'Initial commit with contributors' git push -u origin master bash eval "$(ssh-agent -s)" ssh-add ~/.ssh/id_rsa cat ~/.ssh/id_rsa.pub bash export [email protected]:shadiakiki1986/git-data-repo-testDataRepo composer run-script test bash export GITDATAREPO_REMOTE=https://shadiakiki1986:[email protected]/shadiakiki1986/git-data-repo-testDataRepo composer run-script test bash git config --global user.email "[email protected]" git config --global user.name "Your Name"

    Omit --global to set the identity only in this repository

    bash travis login # enter github credentials tar cvf ssh_keys.tar -C ~/.ssh id_rsa id_rsa.pub travis encrypt-file ssh_keys.tar --add git add ssh_keys.tar.enc

    
    References
    * https://docs.travis-ci.com/user/encrypting-files/
    * https://grosser.it/2014/03/01/allowing-travis-to-git-clone-by-adding-a-public-ssh-key/
    * https://gist.github.com/lukewpatterson/4242707
    * https://docs.travis-ci.com/user/private-dependencies/

phpmd

phpmd issued warnings about static access to classes. I disabled these warnings for the functions in subject. To see them, check grep SuppressWarnings * -r --exclude-dir=vendor

phpcs

If phpcs reports errors that can be fixed automatically, run vendor/bin/phpcbf src/ and then commit the changes

badges

Badges from badge poser


All versions of git-data-repo with dependencies

PHP Build Version
Package Version
Requires monolog/monolog Version ^1.19
coyl/git Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package shadiakiki1986/git-data-repo contains the following files

Loading the files please wait ....