如何用php检查文本版本的github文件 [英] How to check a github file in text version with php

查看:132
本文介绍了如何用php检查文本版本的github文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题很简单!

我可以看到一个github文件如何在文本模式下运行?

我只需要比较包含的github文件。

My question is simple!
I could see how a github file on text in mode?
I just need to compare the contained of github file.

你知道如何处理php吗?

Would you know how to do with php?

推荐答案

Github的网址很简单它涉及到原始文件。看到这个例子:

Github has pretty straightforward urls when it comes to raw files. See this example:


https://raw.github.com/libgit2/libgit2/development/CMakeLists.txt

因此,只要你知道github项目中的文件路径,就可以使用特殊的 raw.github.com 主机名,并从PHP读取内容。

So as long as you know the path to a file in a github project, you can use the special raw.github.com hostname, and read the contents from PHP.

这篇关于如何用php检查文本版本的github文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆