I have spent two days researching for a library or some sort of PHP function to parse the git patch GitHub’s API returns and I can’t find anything I can use.
I was able to take out a decent amount of code from Phabricator, but it just has too many dependencies.
Does anyone know of php code that will parse something like the following:
commit d87635a1001a23d3a20422fcc8f2484b6bf3ab1b
Author: Stav <st@gmail.com>
Date: Thu Dec 6 23:59:16 2012 +0200
#666390 test chargify create and cancel subscription.
diff --git a/.gitignore b/.gitignore
index 796276b..b7fc8a1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
application/config/config.php
-application/config/database.php
\ No newline at end of file
+application/config/database.php
+/local_file.php
diff --git a/testing/Unit/libs/ChargifyTest.php b/testing/Unit/libs/ChargifyTest.php
new file mode 100644
index 0000000..f6ea674
--- /dev/null
+++ b/testing/Unit/libs/ChargifyTest.php
@@ -0,0 +1,38 @@
+<?php
+
+require_once dirname(__FILE__).'/../../../local_file.php';
+
Into an html table like this:

Thank you in advance 🙂
Here is what i’ve come up with.