Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6345845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:54:04+00:00 2026-05-24T20:54:04+00:00

I need to to a git checkout in pure PHP. I already tried this

  • 0

I need to to a git checkout in pure PHP.
I already tried this ( http://www.phpclasses.org/package/5310-PHP-Retrieve-project-files-from-GIT-repositories.html ) with HTTP and SASL, but I didn’t really work.
Then I took a look at GLIP ( https://github.com/patrikf/glip ), but that doesn’t seem to have any functionality like this.
Basically I need to

-replicate/clone a remote git repository

-“extract” master branch files into a specified directory

The main problem with PHP GIT is, that it just didn’t supported all possible changes you could do in a commit. Only new files, no moving around of files. And it was also unable to extract files.

/edit:
git is not installed and I also cannot install git

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T20:54:05+00:00Added an answer on May 24, 2026 at 8:54 pm

    You can try with

    • https://github.com/teqneers/PHP-Stream-Wrapper-for-Git

    Git Streamwrapper for PHP is a PHP library that allows PHP code to interact with one or multiple Git repositories from within an application. The library consists of a Git repository abstraction that can be used to programatically access Git repositories and of a stream wrapper that can be hooked into the PHP stream infrastructure to allow the developer to use file and directory access functions directly on files in a Git repository. The library provides means to access status information on a Git repository, such as the log, the current repository status or commit information, as well.

    It requires Git to be installed on the machine though and is in beta as of this writing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to checkout this libunwind port for FreeBSD, http://people.freebsd.org/~kib/git/libunwind.git/ I've never used git
I need help in understanding git rebase for this situation. I checked out a
I need help getting git extensions to run with msysgit. I have had bad
I need to make some commits using Git but I would like the timestamp
I need to get a path to the GIT on Max OS X 10.6
In my project I need to use third party code, stored in several Git
I am currently working on ClearCase and now migrating to GIT. But we need
i use the git workflow as described in this blogpost . In short: everybody
I have the following git status and I need to get rid of pluginA
I'm writing some scripts for my Git workflow. I need to reset other (existing)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.