Skip to content
This repository has been archived by the owner. It is now read-only.
Gentics Mesh Silex Example
HTML PHP Shell Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.dockerignore
.gitignore
Dockerfile
README.md
captain.yml
composer.json
dev.sh
mesh-demo.conf

README.md

Silex EOL

Silex has reached the EOL and is no longer being developed. https://symfony.com/blog/the-end-of-silex

This example will be archived. A good alternative for Silex would be Symfony.

Gentics Mesh Silex Example

This example shows how to use Gentics Mesh in combination with the Silex PHP routing framework.

The Gentics Mesh GraphQL API is being used to locate the requested content. That content is used to render various Twig templates.

Getting Started

# Clone example project
git clone git@github.com:gentics/mesh-silex-example.git
git checkout graphql-example
cd mesh-silex-example

# Install needed dependencies 
composer update

# Download Gentics Mesh from https://getmesh.io/Download and start it
java -jar mesh-demo-0.9.xx.jar

Run with PHP 7

The example can also be run directly using the embedded PHP server.

php -S localhost:3000 src/index.php

Run with Docker

You can start the docker container to run the example using the ./dev.sh script. Once started you should be able to access the demo example via http://localhost:3000 in your browser.

Run with Apache

Alternatively you can also deploy the PHP example on your Apache Webserver installation. You may use the provided site configuration file mesh-demo.conf for your apache.

You can’t perform that action at this time.