// gatsby-config.js module.exports = { siteMetadata: { title: 'My Website', description: 'A simple static website built with Gatsby' }, plugins: [ { resolve: 'gatsby-plugin-php', options: { src: '/path/to/index.php', outputPath: '/public' } } ] }
# _config.yml gems: - jekyll-php plugins: - jekyll-php exclude: - '*.php' include: - '*.html' - 'php/**/*' permalink: pretty safe: trueIn this example, we've added the `jekyll-php` gem to our Jekyll configuration and added the `jekyll-php` plugin. We've also excluded all PHP files from our build process except for those in a `php` subdirectory. The resulting HTML files will have clean URLs thanks to the `permalink: pretty` setting.