A plain php demo showing how work with powerorm, powerform, powerormdebugger and powerormfaker
Switch branches/tags
Nothing to show
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.
assets
src
.gitignore
.htaccess
Procfile
README.md
composer.json
composer.lock
config.php
functions.php
index.php
install.sh
pmanager.php
serve
test.php

README.md

Demo application using powerorm ecosystem

This is a demo app that shows how to use

It does not use any frameworks just a straight plain php project for easier understanding.

NOTE

This demo uses the development version of the orm branch 1.1.0.x-dev.

This explains why you will find some new features on this demo.

Install

git clone https://github.com/eddmash/powerocomponentsdemo.git

Fetch packages

Get into the powercomponents folder and run to get the dependencies.

composer update

This downloads all the libraries this application depends on.

Update config

All configs are found under app/Config/powerorm.php. create database called powerormcomponents and update the database configurations to work with your database.

Run migrations

Once the database is created you will have to create tables that this app uses. To do this simple run

php pmanager migrate

Generate data

To use the exact data i'm using for this examples on your database.

Run this command to have powerormfaker generate the exact data.

php pmanager faker:generatedata -r 50 -s 123456

Run php server

All code samples are located under app/.

The application use the builtin php server, to start using

php -S 127.0.0.1:8000/app/