www.php-fig.org

Source for the PHP-FIG website

  • 所有者: php-fig/www.php-fig.org
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

www.php-fig.org

This is the source for www.php-fig.org. It is a static site generated with
Sculpin.

Contributing

  • If you notice something missing, please open an issue on GitHub.

  • If you'd like to fix it yourself, simply edit the file on GitHub and
    open a pull request. The site will be recompiled as soon as your pull
    request is merged.

  • If you'd like to run the site locally o generate the HTML files, you'll need to install the dependencies.
    The templates are built by directly including the Markdown sources from the fig standards repo, which is provided as a git submodule.

Clone

Note the --recursive flag to clone the submodule too.

git clone --recursive https://github.com/php-fig/www.php-fig.org

Install

While the project was ported from Jekyll to Sculpin to use PHP, some Ruby dependencies are still present. This will probably change in the future.

bin/install.sh

will install both PHP Composer packages and Ruby bundled gems.

Build

bin/build.sh

will compile the sources into output_dev.

Run

vendor/bin/sculpin serve

Updating the submodule

This site uses the master branch of the main PHP-FIG repository as a Git submodule to pull content from it.
If you need to update it, you can use the bin/update_submodule.sh script to pull new commits. Afterwards, you can commit
the differences in this repo, to push the updates afterwards.

Using Docker

A multistage Dockerfile is provided, in case you want to build and/or run everything without installing any dependency whatsoever. Docker version 17.09.0-ce or newer is required.

The final image is a simple NGINX instance:

docker build . -t fig-website
docker run --rm -p 80:80 fig-website
# browse the website at http://localhost

However, you can use the dev target, which provides an interactive terminal to access a fully provisioned PHP+Ruby environment.

If you want to develop in the Docker runtime, you'll have mount the project root as a volume, expose port 8000, explicitly run the install/build process, and run the PHP built-in server:

docker build . --target dev -t fig-website-dev
docker run --rm -ti -p 8000:8000 -v $PWD:/fig-website fig-website-dev
# inside the container terminal
install.sh
build.sh
sculpin serve

Note that:

  • inside the container, relevant executables are in the global PATH
  • the container is executed with user and group with id 1000 by default, which will likely match your main host user. You can change the id via the UID and GID build-time variables (--build-arg).

主要指标

概览
名称与所有者php-fig/www.php-fig.org
主编程语言HTML
编程语言Ruby (语言数: 9)
平台
许可证MIT License
所有者活动
创建于2012-06-25 15:34:50
推送于2025-07-16 20:53:17
最后一次提交2025-07-16 22:53:12
发布数1
最新版本名称2.5 (发布于 )
第一版名称2.5 (发布于 )
用户参与
星数149
关注者数30
派生数122
提交数1k
已启用问题?
问题数56
打开的问题数4
拉请求数247
打开的拉请求数1
关闭的拉请求数45
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?