Comments (13)
Is system()
allowed on your host?
from packagist.
I have a dedicated server. But I thought of using https://github.com/patrikf/glip - if it's possible to read directly from a remote without cloning it that is. Probably it's not possible though. @stof you mentioned s2b clones git repos I believe? How do you handle this?
from packagist.
I used that library, and It has lots of bugs. I have created a bundle from that library (http://github.com/xaav/GitBundle), which has some fixes and improvements, but it is no where near a stable version. The reason for this is that it is very picky about what it can an cannot do (and believe me, cloning is much too complex for it). You may be able to make it work with a lot of commits and fixes, but you will have a lot of debugging to do. I really would like to improve this library to make it usable, but I don't have the time right now, you're much better off using https://github.com/ornicar/php-git-repo.
from packagist.
@Seldaek we use ornicar's library, which uses git installed on the server.
from packagist.
I wasn't suggesting you clone the repo with it, you only need to access branches, tags, and composer.json files on those. Commit info would be nice too.
from packagist.
@stof yup, but it means you have to clone the repo right? It'd be nice to avoid that, for efficiency and avoiding a mess on the filesystem, but I guess most of the repos will be github anyway, so it shouldn't be too problematic.
from packagist.
@stof yup, but it means you have to clone the repo right? It'd be nice to avoid that, for efficiency and avoiding a mess on the filesystem, but I guess most of the repos will be github anyway, so it shouldn't be too problematic.
@Seldaek how do you plan on accessing the repo's data without cloning it? Even if there was a way to access the data without cloning the repository, all you would be doing is reading the data, and then throwing it away.
from packagist.
Well I was just curious if it was possible at all. It appears not though :)
from packagist.
@Seldaek we indeed clone them. This allow us to retrieve some data from the code without the limitation of the github api (the v2 limits to 60 calls per minute, the v3 which we don't use currently limits to 5000 calls per day). For instance to get the readme (this could also be used to render the doc in the future)
from packagist.
It'd be nice to avoid that, for efficiency and avoiding a mess on the filesystem,
Just store the files in /tmp, then set a cron to clean out that folder.
from packagist.
Yup, it's not a big issue, just would have been nice to avoid it. Let's go with cloning & php git repo then. But this is not too urgent. Did you see I put stuff in milestones btw? :)
from packagist.
This could be more useful than phpGitRepo, remains to be seen.. https://github.com/teqneers/PHP-Stream-Wrapper-for-Git
from packagist.
Yes, but we would still need to build a zip of the repo.
from packagist.
Related Issues (20)
- Get "dependents" with specific version constraints HOT 3
- Security Advisories page should list all associated identifiers HOT 1
- Sudden 404 not found on API for some existing packages HOT 6
- no ext-grpc package found HOT 2
- `4.0` instead of `4.0.0` tag HOT 1
- Sorry but we're done with these announcements.
- Read me is not shown to guest HOT 1
- How can i update the version of my library correctly and remove the tag ignored warning message ? HOT 3
- composer won't update latest project tag HOT 2
- extend GitLab support HOT 2
- Installation stats graph visibility
- Respect 'dev' keyword in packagist UI to show composer require --dev HOT 1
- [FEATURE] Geographical installation chart HOT 1
- Resolve historic tags HOT 5
- Not receiving email when resetting password HOT 1
- Email users on account security changes to alert them to potential compromise
- Migrating to Bootstrap 5.3 HOT 1
- Can get the user details HOT 1
- Fix typo on API documentation page
- SSH source URLs being used for github.com HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packagist.