Download the PHP package samsonasik/mezzio-react without Composer
On this page you can find all versions of the php package samsonasik/mezzio-react. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download samsonasik/mezzio-react
More information about samsonasik/mezzio-react
Files in samsonasik/mezzio-react
Package mezzio-react
Short Description Laminas mezzio skeleton with React.js Integration
License BSD-3-Clause
Homepage https://github.com/samsonasik/mezzio-react
Informations about the package mezzio-react
Example Using React.js in Mezzio application
Introduction
A Mezzio 3 Skeleton Application with React.js integration.
Features
- SPA application with React Router DOM with cached pages after visited.
- Using server side template from Mezzio 3, eval'd with DOMPurify it first.
- Webpack support for production
Setup
1. Run composer create-project command:
2. Run PHP Development server
3. Open web browser http://localhost:8080
Production
For deploy to production purpose, it has webpack.config.js
in root directory that when we run webpack
command, we can get public/js/dist/bundle.js
after run it. If you don't have a webpack
installed yet in your system, you can install nodejs and install webpack
and webpack-cli
:
So, we can run:
After it generated, we can run the following commands to get production
environment by default:
In default.phtml
, we have a isDevelopment()
view helper check to use js/app.js
when on development, and use /js/dist/bundle.js
on production when exists.
that will automatically take care of that.
All versions of mezzio-react with dependencies
laminas/laminas-component-installer Version ^2.1.2
laminas/laminas-config-aggregator Version ^1.2
laminas/laminas-diactoros Version ^2.3.0
laminas/laminas-servicemanager Version ^3.4
laminas/laminas-stdlib Version ^3.2.1
mezzio/mezzio Version ^3.2.1
mezzio/mezzio-helpers Version ^5.3
mezzio/mezzio-laminasrouter Version ^3.0.1
mezzio/mezzio-laminasviewrenderer Version ^2.2