Ich erstelle gerade eine Seite um spezifische Repository-Informationen von Github darzustellen. Dazu gehören Author, Beschreibung und die aktuelle Version. Diese Informationen möchte ich mir von Github über eine API holen und nicht DIVs auf der Repository-Webpage crawlen.
Kann mir jemand ein PHP-Beispiel liefern, um auf offiziellem Wege an die Informationen zu kommen und nicht mit Crawlern zu arbeiten? Ich nutze Symfony falls dies helfen sollte.
Danke!
_______________________________________________
I'm building a page to show some specific repositories. The informations I need to know is the author, the description and the current version. Sure, I could crawl the github repository page and find the div with this information, but if Github changes the HTML my crawler would be usless. So I'm searching a official method to get this informations with PHP. Is there a solution out there for this case? I am using symfony.
Many thanks.
Kann mir jemand ein PHP-Beispiel liefern, um auf offiziellem Wege an die Informationen zu kommen und nicht mit Crawlern zu arbeiten? Ich nutze Symfony falls dies helfen sollte.
Danke!
_______________________________________________
I'm building a page to show some specific repositories. The informations I need to know is the author, the description and the current version. Sure, I could crawl the github repository page and find the div with this information, but if Github changes the HTML my crawler would be usless. So I'm searching a official method to get this informations with PHP. Is there a solution out there for this case? I am using symfony.
Many thanks.
Kommentar