Skip to content
Dancing Goat site built with Kentico Kontent and Laravel
Branch: master
Clone or download
Pull request Compare This branch is 29 commits ahead, 1 commit behind stephenr85:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
bootstrap Fresh Laravel 5.5.19 install Oct 26, 2017
config Added (missing) new config files Oct 8, 2019
database 5.8 to 6.x Oct 8, 2019
public Coffee index, filter, and detail Nov 2, 2017
resources Remove - References to Engage project Oct 10, 2018
routes Implemented locale switching; seems that sample project does not have… Nov 3, 2017
tests fix example test Oct 8, 2019
.gitignore update naming Oct 8, 2019
artisan Fresh Laravel 5.5.19 install Oct 26, 2017
package.json Infrastructure and home page working Oct 27, 2017
server.php Fresh Laravel 5.5.19 install Oct 26, 2017
webpack.mix.js Infrastructure and home page working Oct 27, 2017
yarn.lock Infrastructure and home page working Oct 27, 2017

Kentico Kontent sample Laravel PHP web application

Stack Overflow

This is a sample website written in PHP7 using Laravel framework and Kentico Kontent Delivery SDK for PHP. You can register your account for free at

Application setup

There should be PHP7.2 and higher and composer installed in your environment. Once these prerequisites are met, you run the application as follows:

  1. Clone this repository.
  2. cd in the project folder and run composer update and php artisan serve commands.
  3. Access (default) to browse the application.

Alternatively you can also deploy your application to your apache server just by cloning the repository, running composer update and accessing corresponding address on your server.

Connecting your project

This sample website displays content from a Sample Project that demonstrates Kentico Kontent features and best practices. This fully featured project contains marketing content for Dancing Goat – an imaginary chain of coffee shops. By default, this sample website uses a shared project where the content remains constant for everyone.

You can change the source Kentico Kontent project to your own project to be able to change the content. If you don't have your own Sample Project, any admin of a Kentico Kontent subscription can generate one. When you have a Sample Project, follow these steps to connect it to this sample website:

  1. In Kentico Kontent, choose Project settings from the app menu.
  2. Under Development, choose API keys.
  3. Copy your Project ID.
  4. Open app\Providers\AppServiceProvider.php file in the sample application folder.
  5. Find new DeliveryClient('975bf280-fd91-488c-994c-2f04416e5ee3'); and replace guid with your Project ID.
  6. Save the file.

Now when you run the sample application, content is retrieved from your project.

Content administration

  1. Navigate to in your browser.
  2. Sign in with your credentials.
  3. Manage content in the content administration interface of your sample project.

You can learn more about content editing with Kentico Kontent in the documentation.

Content delivery

You can retrieve content either through the Kentico Kontent Delivery SDKs or the Kentico Kontent Delivery API:

  • For published content, use
  • For unpublished content, use

For more info about the API, see the API reference.

You can find the Delivery and other SDKs at Kentico Github Organization.

Known issues

Kub-AT's HTML DOM parser

When using this sample application with some versions of PHP (reproduced on v 7.3.7), one of the dependencies (kub-AT/php-simple-html-dom-parser) tends to get stuck in an endless loop of calls to its own destructor. We worked-around this issue by renaming destructors in fetched dependencies every time they are changed. For futher reference, please see the issue in package's repository repository and (original package issue)[].

Feedback & Contributing

Check out the contributing page to see the best places to file issues, start discussions, and begin contributing.

Developing on Windows

Have a look at our cool tutorial on developing PHP on Windows with Visual Studio Code!

Developing on Linux

Do you prefer penguins? Check out our tutorials on developing PHP on Linux with PhpStorm!


We would like to express our thanks to Stephen Rushing who created this sample application.


You can’t perform that action at this time.