SurveyJS

Step-by-Step PHP Backend Integration with Laravel

Build a PHP Backend for Your SurveyJS Forms

Learn how to connect SurveyJS components to a PHP backend using Laravel. These working examples accompany the PHP integration guide and show the code behind each request. SurveyJS does not include a backend, so use these examples as a starting point for your application.

View on GitHub

Run Forms

SurveyJS Form Library displays forms in the browser. Start with a PHP endpoint that saves submitted answers, then add the workflows your application needs.

Analyze Results with Dashboard

SurveyJS Dashboard lets users analyze responses with interactive charts in the browser. Your PHP backend supplies the saved responses.

Edit Forms in Survey Creator

Survey Creator lets users build and edit forms in the browser. Your PHP backend loads and saves form JSON schemas and checks that users have permission to make changes.

Run Server-Side Workflows

Use a Node.js service alongside your PHP application to run SurveyJS workflows: validate responses, check form schemas, generate PDFs, and extract answers from documents.