+ 1
How to work with PHP on GitHub Pages?
How to work with PHP on GitHub Pages?
1 Antwort
+ 5
It depends on what you want to do. PHP is not supported by Github Pages, since you can only host static sites.
Normally to generate the site it is advisable to use Jekyll or Octopress, but you can use a generator in PHP and upload the generated site to Github. In this case I recommend that you have a repo with the generated site (the one that will be shown to the user) and another with the source code of your project. If you need some kind of persistence of data you will have to supplement with external services (like Disqus for comments).
On this page you have a large collection of generators that can help you:
https://www.staticgen.com
PS: Keep in mind that a static site is not for everyone. I am a big fan of them, and therefore I always recommend evaluating the benefits and disadvantages of using one.