Download the PHP package wscore/pages without Composer

On this page you can find all versions of the php package wscore/pages. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pages

WScore.Pages

A page controller for good and old (and notorious) PHP code.

This is a component created with the hope that it will make things a little easier for people (i.e. me) who have to maintain PHP code written in the old style.

For example, the following

http://example.com/example.php

The goal is to give you the freedom to develop with controllers, even if you access PHP directly.

License

MIT License

Installation

PHP 5.6 is targeted. only available in beta alpha version.

Demo

Access localhost:8000 in your browser.

Simple Usage

It's relatively normal.

  1. create a Controller for the page and generate an object.
  2. Execute the controller with Dispatch.
  3. Create an HTML page under the directory for the view.

Create a Controller.

Create it by inheriting from ControllerAbstract.

Run the controller.

Execute (Dispatch) the Controller in a PHP file.

Dispatch is used for session management and CSRF token checking.

The method name of the controller to be executed is determined from one of the following.

If you access the site normally, onGet will be called. If you post with a form, it is onPost.

View file

In the sample code, "__DIR__ . '/views'" in the sample code is the directory for views.

Create "user.php" in this directory.

Other Functions

CSRF tokens.

Outputs a CSRF token from the $view object.

Whenever posted, check for a CSRF token. If the check fails, it will result in a Critical error.

Critical error.

This is a special error for PageView.

Messages and Flushing

You can specify a message in the controller's message and error.

In view PHP, you can display messages, as;

Flash message

`

With the same PHP code as the message, you can display.

XSS protection

t.b.w.

HTML Forms

t.b.w

Credits

README.md translated with www.DeepL.com/Translator (free version).

then some fixed by me.


All versions of pages with dependencies

PHP Build Version
Package Version
Requires laminas/laminas-diactoros Version ^2.0
aura/session Version ^2.1
ext-mbstring Version *
wscore/validation Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wscore/pages contains the following files

Loading the files please wait ....