2017 © Pedro Peláez
 

library prado

Component Framework for PHP

image

pradosoft/prado

Component Framework for PHP

  • Monday, July 16, 2018
  • by ciromattia
  • Repository
  • 33 Watchers
  • 145 Stars
  • 11,874 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 61 Forks
  • 38 Open issues
  • 24 Versions
  • 6 % Grown

The README.md

Prado PHP Framework

PRADO is a component-based and event-driven programming framework for developing Web applications in PHP. PRADO stands for PHP Rapid Application Development Object-oriented., (*1)

Build Status Code Quality Code Coverage Total Downloads Latest Stable Version, (*2)

PRADO is best suitable for creating Web applications that are highly user-interactive. It can be used to develop systems as simple as a blog system to those as complex as a content management system (CMS) or a complete e-commerce solution. Because PRADO promotes object-oriented programming (OOP) through its component-based methodology, it fits extremely well for team work and enterprise development. Its event-driven programming pattern helps developers gain better focus on business logic rather than distracted by various tedious and repetitive low-level coding handling., (*3)

PRADO comes with many features that can cut down development time significantly. In particular, it provides a rich set of pluggable Web controls, complete database support including both active record and complex object mapper, seamless AJAX support, theme and skin, internationalization and localization, various caching solutions, security measures, object extensions with behaviors, composer integration with plugins, cron task manager, industry standard RBAC permissions, command line application interface, and many other features., (*4)

The PRADO framework and the included demos are free software. They are released under the terms of the LICENSE., (*5)

Install

The best way to install PRADO is through composer. If you don't use composer yet, first install it:, (*6)

# download composer.phar
curl -s http://getcomposer.org/installer | php
# install it globally on the system
mv composer.phar /usr/local/bin/composer

Then, create the application structure using composer:, (*7)

composer create-project pradosoft/prado-app app

The application will be installed in the "app" directory., (*8)

Built-in PHP Test Web Server

The built-in PHP Test Web Server can be used to immediately start developing and testing a web application. The web server is started with command (assuming the above application in the directory "app"):, (*9)

cd app/protected
./vendor/bin/prado-cli http

The application is then accessible on the machine's browser at http://127.0.0.1:8080/. The built-in web server is enabled when the application is in "Debug" mode or is enabled in the application configuration parameters., (*10)

Add PRADO to an existing application

Just create a composer.json file for your project:, (*11)

{
  "repositories": [
    {
      "type": "composer",
      "url": "https://asset-packagist.org"
    }
  ],
    "require": {
      "pradosoft/prado": "^4"
  }
}

The asset-packagist repository is used to install javascript dependencies. Assuming you already installed composer, run the command:, (*12)

composer install

Then you can include the autoloader, and you will have access to the library classes:, (*13)

<?php
require 'vendor/autoload.php';

PRADO Composer Extensions

PRADO 4.2 supports Composer extensions to plug in new functionality directly into a PRADO application; such as new web controls, API integration, authorization, new services, analytics, custom behaviors, and CLI commands. 3rd party extensions can be found at Packagist - Prado4-Extensions. The community is encouraged to write and submit 3rd party PRADO 4 extensions for others to find and use., (*14)

PRADO provides a rich set of features for runtime extension of an application with composer extensions. Behaviors modify existing functionality and add new properties and methods to instanced run-time objects. Class-wide behaviors add default behaviors to classes, interfaces, and traits when instancing new objects and to "listen"ing instances. "Global Events" enable extensions to communicate with other extensions without knowledge of application configuration. "Dynamic Events" enable objects to communicate with their attached behaviors with direct function calls., (*15)

The example PRADO Composer extension has its own manifest, Module, web page, and error messages. It can be included in an application with the following command:, (*16)

composer require --prefer-dist pradosoft/prado-composer-extension "*"

Once downloaded and installed in composer, an extension is activated by adding the Composer Extension Name as a new module ID in the application configuration file application.xml or application.php. To include the example extension "pradosoft/prado-composer-extension", the PRADO configuration would include this module xml:, (*17)

<modules>
  ...
  <module id="pradosoft/prado-composer-extension" PropertyA='value1' />
</modules>

When using a Composer Extension as a module id, the class for the module is embedded in the Composer Extension Manifest and does not need to be specified., (*18)

Documentation

A great introduction to PRADO is available in the Quickstart tutorial. The tutorial itself is a PRADO application included in the demos The complete API documentation can be found on the API Manual, (*19)

Demo Apps

Several different example PRADO applications are provided in the https://github.com/pradosoft/prado-demos repository. You can see these applications running here: http://www.pradoframework.net/site/demos/ ., (*20)

Integration with your favorite IDE/editor

Plugins providing syntax highlighting and code snippets can be found at https://github.com/pradosoft/editor-plugins, (*21)

Contributing

In the spirit of free software, everyone is encouraged to help improve this project., (*22)

Here are some ways you can contribute:, (*23)

  • by using prerelease versions
  • by reporting bugs
  • by writing specifications
  • by writing code (no patch is too small: fix typos, add comments, clean up inconsistent whitespace)
  • by refactoring code
  • by resolving issues
  • by reviewing patches
  • by writing your own composer extension for PRADO and posting it on Packagist
  • by supporting and contributing to your favorite composer PRADO extensions

Starting point:, (*24)

  • Fork the repo
  • Clone your repo
  • Make your changes
  • Write tests for your changes to ensure that later changes to PRADO won't break your code.
  • Submit your pull request

Testing

PRADO uses phpunit (https://phpunit.de/) for unit testing and Selenium (http://www.seleniumhq.org/) for functional testing., (*25)

In order to run tests, first clone the PRADO repository and have composer install the needed development libraries:, (*26)

git clone https://github.com/pradosoft/prado.git`
cd prado
composer install

For functional tests only, you need to manually download and run an app called Selenium Server. It's a java application, so you'll need to install a JRE/JDK and then run it from a terminal:, (*27)

java -jar selenium-server-4.x.x.jar standalone

Depending on the browser you want to use to do functional testing, you may need an additional driver., (*28)

Now you are redy to run tests; a phpunit configuration file is providen, to run the tests just execute, (*29)

composer unittest to run unit tests and composer functionaltest to run functional tests., (*30)

Test results will be saved in in the build/tests/ directory., (*31)

Generatting the API documentation

PRADO uses phpDocumentor 3 (https://github.com/phpDocumentor/phpDocumentor) to generate its API documentation. A phpdoc.dist.xml configuration file is provided, to generate the documentation just execute:, (*32)

composer gendoc

The documentation will be generated in the build/docs/ directory., (*33)

The Versions

16/07 2018

dev-master

9999999-dev https://github.com/pradosoft/prado

Component Framework for PHP

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Fabio Bas
by Ciro Mattia Gonano
by David Otto
by Daniel Sampedro
by Jens Klaer

framework component

30/03 2018

4.0.1

4.0.1.0 https://github.com/pradosoft/prado

Component Framework for PHP

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Fabio Bas
by Ciro Mattia Gonano
by David Otto
by Daniel Sampedro
by Jens Klaer

framework component

30/03 2018

dev-pgsql_scrutinizer

dev-pgsql_scrutinizer https://github.com/pradosoft/prado

Component Framework for PHP

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Fabio Bas
by Ciro Mattia Gonano
by David Otto
by Daniel Sampedro
by Jens Klaer

framework component

05/03 2018

dev-php-cs-fixer

dev-php-cs-fixer https://github.com/pradosoft/prado

Component Framework for PHP

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Fabio Bas
by Ciro Mattia Gonano
by David Otto
by Daniel Sampedro
by Jens Klaer

framework component

25/01 2018

dev-prado-3.3

dev-prado-3.3 https://github.com/pradosoft/prado

Component Framework for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.3
  • ext-ctype *
  • ext-dom *
  • ext-json *
  • ext-pcre *
  • ext-spl *

 

The Development Requires

by Fabio Bas
by Ciro Mattia Gonano
by David Otto
by Daniel Sampedro
by Jens Klaer

framework component

25/01 2018

3.3.3

3.3.3.0 https://github.com/pradosoft/prado

Component Framework for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.3
  • ext-ctype *
  • ext-dom *
  • ext-json *
  • ext-pcre *
  • ext-spl *

 

The Development Requires

by Fabio Bas
by Ciro Mattia Gonano
by David Otto
by Daniel Sampedro
by Jens Klaer

framework component

11/12 2017

dev-intl

dev-intl https://github.com/pradosoft/prado

Component Framework for PHP

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Fabio Bas
by Ciro Mattia Gonano
by David Otto
by Daniel Sampedro
by Jens Klaer

framework component

20/11 2017

4.0.0

4.0.0.0 https://github.com/pradosoft/prado

Component Framework for PHP

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Fabio Bas
by Ciro Mattia Gonano
by David Otto
by Daniel Sampedro
by Jens Klaer

framework component

16/01 2017

dev-prado4-sauce

dev-prado4-sauce https://github.com/pradosoft/prado

Component Framework for PHP

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Fabio Bas
by Ciro Mattia Gonano
by David Otto
by Daniel Sampedro
by Jens Klaer

framework component

23/08 2016

3.3.2

3.3.2.0 https://github.com/pradosoft/prado

Component Framework for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.3
  • ext-ctype *
  • ext-dom *
  • ext-json *
  • ext-pcre *
  • ext-spl *

 

The Development Requires

by Fabio Bas
by Ciro Mattia Gonano
by David Otto
by Daniel Sampedro
by Jens Klaer

framework component

19/04 2016

3.3.1

3.3.1.0 https://github.com/pradosoft/prado

Component Framework for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.3
  • ext-ctype *
  • ext-dom *
  • ext-json *
  • ext-pcre *
  • ext-spl *

 

The Development Requires

by Fabio Bas
by Ciro Mattia Gonano
by David Otto
by Daniel Sampedro
by Jens Klaer

framework component

14/02 2016

3.3.0

3.3.0.0 https://github.com/pradosoft/prado

Component Framework for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.3
  • ext-ctype *
  • ext-dom *
  • ext-json *
  • ext-pcre *
  • ext-spl *

 

The Development Requires

by Fabio Bas
by Ciro Mattia Gonano
by David Otto
by Daniel Sampedro
by Jens Klaer

framework component

26/08 2014

dev-prado-3.2

dev-prado-3.2 http://www.pradosoft.com/

Component Framework for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.3
  • ext-ctype *
  • ext-dom *
  • ext-json *
  • ext-pcre *
  • ext-spl *

 

The Development Requires

by Fabio Bas
by Ciro Mattia Gonano
by David Otto
by Christophe Boulain
by Robin J. Rogge
by Daniel Sampedro Bello

framework component

26/08 2014

3.2.4

3.2.4.0 http://www.pradosoft.com/

Component Framework for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.3
  • ext-ctype *
  • ext-dom *
  • ext-json *
  • ext-pcre *
  • ext-spl *

 

The Development Requires

by Fabio Bas
by Ciro Mattia Gonano
by David Otto
by Christophe Boulain
by Robin J. Rogge
by Daniel Sampedro Bello

framework component

26/11 2013

3.2.3

3.2.3.0 http://www.pradosoft.com/

Component Framework for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.3
  • ext-ctype *
  • ext-dom *
  • ext-json *
  • ext-pcre *
  • ext-spl *

 

The Development Requires

by Fabio Bas
by Ciro Mattia Gonano
by Christophe Boulain
by Robin J. Rogge

framework component

19/11 2013

3.2.2.05

3.2.2.05 http://www.pradosoft.com/

Component Framework for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.3
  • ext-ctype *
  • ext-dom *
  • ext-json *
  • ext-pcre *
  • ext-spl *

 

The Development Requires

by Fabio Bas
by Ciro Mattia Gonano
by Christophe Boulain
by Robin J. Rogge

framework component

18/10 2013

3.2.2.04

3.2.2.04 http://www.pradosoft.com/

Component Framework for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.3
  • ext-ctype *
  • ext-dom *
  • ext-json *
  • ext-pcre *
  • ext-spl *

 

The Development Requires

by Fabio Bas
by Ciro Mattia Gonano
by Christophe Boulain
by Robin J. Rogge

framework component

17/09 2013

3.2.2.03

3.2.2.03 http://www.pradosoft.com/

Component Framework for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.3
  • ext-ctype *
  • ext-dom *
  • ext-json *
  • ext-pcre *
  • ext-spl *

 

The Development Requires

by Fabio Bas
by Ciro Mattia Gonano
by Christophe Boulain
by Robin J. Rogge

framework component

11/09 2013

3.2.2.01

3.2.2.01 http://www.pradosoft.com/

Component Framework for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.3
  • ext-ctype *
  • ext-dom *
  • ext-json *
  • ext-pcre *
  • ext-spl *

 

The Development Requires

by Fabio Bas
by Christophe Boulain
by Robin J. Rogge

framework component

11/09 2013

3.2.2.02

3.2.2.02 http://www.pradosoft.com/

Component Framework for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.3
  • ext-ctype *
  • ext-dom *
  • ext-json *
  • ext-pcre *
  • ext-spl *

 

The Development Requires

by Fabio Bas
by Christophe Boulain
by Robin J. Rogge

framework component

24/07 2013

3.2.2

3.2.2.0 http://www.pradosoft.com/

Component Framework for PHP 5.

  Sources   Download

BSD

The Requires

  • php >=5.2.4

 

04/06 2013

3.2.1.02

3.2.1.02 http://www.pradosoft.com/

Component Framework for PHP 5.

  Sources   Download

BSD

The Requires

  • php >=5.2.4

 

24/04 2013

3.2.1.01

3.2.1.01 http://www.pradosoft.com/

Component Framework for PHP 5.

  Sources   Download

BSD

The Requires

  • php >=5.2.4

 

01/03 2013

3.2.1

3.2.1.0 http://www.pradosoft.com/

Component Framework for PHP 5.

  Sources   Download

BSD

The Requires

  • php >=5.2.4