Download the PHP package enimiste/prado-project-starter without Composer

On this page you can find all versions of the php package enimiste/prado-project-starter. 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 prado-project-starter

Prado Starter Project

A Project skeleton to build PRADO Framework based web application.
Prado3 is a Component Framework for PHP 5 (Like ASP .NET dose for C#).

Join the chat at https://gitter.im/prado-project-starter/Lobby

Pre-requisites :

Installation :

Firstly run this command :

If all goes right open the new project in your favorite IDE. (ex: PhpStorm)

Setup the Database schema and data :

You can use many types of database as it is supported by PDO Driver.
In this section i will focus on two database types : Sqlite and Mysql.

Parameters config :

Now its time to update our parameters config located in the file protected/config/parameters.xml. Ex :

This parameter is used to build assets urls (css, javascripts, ...) via the function site_url($uri)

Test in browser :

Now you can test the project.

  1. Check if your web server under it the project is deployed is running.
  2. Check if your RDBS is running if you use one.
  3. Type the URL to your project in the browser. Ex : http://localhost/project_name.
  4. The web app will show you the default page of Frontoffice.
  5. To see the Backoffice, click on the link "Espace d'administration" (Backoffice space in frensh, sorry) :

    • A login page will show.
    • Type one of these credentials to access the web app as authenticated user :

      Username Password Role
      sadmin sadmin Super Admin
      admin admin Normal Admin
      user user Normal User
    • And bingo you can manage : users, site settings

Documentation :

The project is divided in two parts :

So protected/pages, protected/pages and themes directories are splited into two sub directories : fo and bo.

The themes directory holde the css, js files needed to render the IHM of each side of you web app. Ex: themes\bo contains sb-admin css and js files used in backoffice IHM.

The theme used in the backoffice is the SB-admin. For the front office is not implemented for instance.

Helpers functions :

I added a bunch of helper functions to help developper access most used features of Prado easaly.
Ex:

And so on ... Lets now take a tour of these function :

Request/Response :

Function Return Type Description
session() THttpSession Return the current running user session.
request() THttpRequest Return the current request.
response() THttpResponse Return the current response.
input($name [, $default = null] ) string Retrieve a request input by its name or return a default value.
page() TPage|NPage Return the current processed Page.
redirect_page($page [, array $param]) Redirect the user to a given page. $page is the namespace format to the page, ex : bo.users.ListPage
redirect_url($url) Redirect the user to a given url.
page_url($page [, array $param] ) string Contruct an URL pointing to a given page. $page is the namespace format to the page, ex : bo.users.ListPage
site_url($uri) string Build an url to a resource located under the root directory of the project. The param base_url is used here.

Security :

Function Return Type Description
auth() TAuthManager Return the Authentication Manager.
user() IUser|TDbUser|NDbUser Return the instance of the authenticated user.
is_guest() bool True if the user is not authenticated in the system.
is_admin() bool True if the authenticated user has one of the roles : Super Admin or Normal Admin
is_super_admin() bool True if the authenticated user has the role : Super Admin

General use :

Function Return Type Description
app() TApplication Return the current runining Prado Application instance.
module($id) IModule Get a module by its id.
running_service() IService Return the current running service that processing the request. For instance it returns the TPageService
page_service() TPageService If another service is processing the request, this function throw a function.
param($id [, $default = null] ) string Retrieve a given parameter from the config/parameters file by its name. If not found, the $default value will be returned.
using($namespace) Shortcut to \Prado::using( $namespace );. I think is more readable this way.
site_info($name [, $default = ''] ) string Return a site setting by its name. If not found returns the default value.
mysql_timestamp(int $time) string Format the given time to the TIMESTAMP format requied by Mysql. Shortcut to date( 'Y-m-d H:i:s', $time );
check_is_int(mixed $v) bool True if the $v is numeric and (is int or is string and is only integer). See source code for more details.

Localisation :

Function Return Type Description
localize($text [, array $parameters [, $catalogue = null [, $charset = null]]] ) string Translate and localize a given $text based on the i18n and i10l of your application.

File System :

Function Return Type Description
file_extension($filename) string Returns the file extension by spliting its name.

LICENSE :

MIT


All versions of prado-project-starter with dependencies

PHP Build Version
Package Version
Requires pradosoft/prado Version ~3.2
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 enimiste/prado-project-starter contains the following files

Loading the files please wait ....