2017 © Pedro Peláez
 

library popphp-tutorial

Tutorial Application for Pop PHP Framework

image

popphp/popphp-tutorial

Tutorial Application for Pop PHP Framework

  • Tuesday, January 30, 2018
  • by nicksagona
  • Repository
  • 1 Watchers
  • 3 Stars
  • 65 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 9 Versions
  • 5 % Grown

The README.md

Pop PHP Tutorial Application

Join the chat at https://popphp.slack.com Join the chat at https://discord.gg/TZjgT74U7E, (*1)

Overview

This is a basic tutorial application for the Pop PHP Framework to demonstrate how to wire up some simple routes for a web-facing application and a CLI-based application., (*2)

Top, (*3)

Install

Create a new project with it:, (*4)

$ composer create-project popphp/popphp-tutorial project-folder

Or clone the repository and install it:, (*5)

$ composer install

Once installed, the web access point is at public/index.php and the main CLI access point is at script/pop, (*6)

Permissions

You must change the permissions of the database folder and script/pop file to writable in order for the application to fully work., (*7)

Top, (*8)

Basic Usage

Web

Start the web server by running:, (*9)

$ ./kettle serve

And then access the web application at these address:, (*10)

http://localhost:8000/

You should see the main home page with comment form at the bottom. You can submit a comment and see it added to the list of comments on the page., (*11)

Console

Setting the script/pop script to be executable, you can test the CLI application like this:, (*12)

$ ./script/pop help
$ ./script/pop show
$ ./script/pop delete

The first command shows the help screen; the second command shows any comments that have been posted; the third command allows you to select a post to delete., (*13)

Top, (*14)

Notes

  • The tutorial application uses the pop-db component to store the comments in a small SQLite database.
  • The tutorial application uses the pop-form component to create, render and validate the comment form.
  • The web application has a view folder, app/view, that holds the view scripts for web page display.
  • The web application is utilizing the pop-http component to leverage the HTTP request and response objects within the controller object.
  • The CLI application is utilizing the pop-console component to leverage it for parsing the CLI requests and returning the appropriate responses to the CLI.

Top, (*15)

The Versions

30/01 2018

dev-master

9999999-dev http://www.popphp.org/

Tutorial Application for Pop PHP Framework

  Sources   Download

BSD-3-Clause New BSD

The Requires

 

framework application tutorial php framework pop pop php

30/01 2018

dev-v3-dev

dev-v3-dev http://www.popphp.org/

Tutorial Application for Pop PHP Framework

  Sources   Download

BSD-3-Clause New BSD

The Requires

 

framework application tutorial php framework pop pop php

30/01 2018

3.0.2

3.0.2.0 http://www.popphp.org/

Tutorial Application for Pop PHP Framework

  Sources   Download

BSD-3-Clause

The Requires

 

framework application tutorial php framework pop pop php

29/01 2018

v2.x-dev

2.9999999.9999999.9999999-dev http://www.popphp.org/

Tutorial Application for Pop PHP Framework

  Sources   Download

BSD-3-Clause New BSD

The Requires

 

framework application tutorial php framework pop pop php

21/06 2017

3.0.1

3.0.1.0 http://www.popphp.org/

Tutorial Application for Pop PHP Framework

  Sources   Download

New BSD

The Requires

 

framework application tutorial php framework pop pop php

27/02 2017

3.0.0

3.0.0.0 http://www.popphp.org/

Tutorial Application for Pop PHP Framework

  Sources   Download

New BSD

The Requires

 

framework application tutorial php framework pop pop php

10/07 2016

2.0.0

2.0.0.0 http://www.popphp.org/

Tutorial Application for Pop PHP Framework

  Sources   Download

New BSD

The Requires

 

framework application tutorial php framework pop pop php

01/07 2016

1.1

1.1.0.0 http://www.popphp.org/

Tutorial Application for Pop PHP Framework

  Sources   Download

New BSD

The Requires

 

framework application tutorial php framework pop pop php

01/03 2016

1.0

1.0.0.0 http://www.popphp.org/

Tutorial Application for Pop PHP Framework

  Sources   Download

New BSD

The Requires

 

framework application tutorial php framework pop pop php