Download the PHP package optiwariindia/website without Composer

On this page you can find all versions of the php package optiwariindia/website. 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 website

website

The concept

It's a composer based basic boilerplate code for PHP 7/8 development.

Installation

To install using composer use following command

How to use

Setup

Configure setup page for your project. The predefined strucutre checks the required php extensions, apache modules, cofiguration files and email/database connectivity parameters. You can extend setup class as below:

Config

The config class is designed to store basic configurations of the application. It stores database configuration, email configuration, API Keys, Encryption keys, Integration parameters and other static resources that are not frequently changed and hence cannot be saved into database. You can extend config class as below:

Request

This class is designed to handle request parameters like inputs, method, timestamp, url, useragent and action parameters. The class can be extended to use in your project as below:

Session

This class is designed to manage user's session using PHP Session variables. This class takes care of initialization of session only once in the page, store parameters into your session variable and fetch them whenever required. The class can be extended to use in your project as below:

View

This class is designed to manage views using twig template engine. Besides twig template engine, it also takes care of JSON outputs and HTML Output as variable. You can extend this class as below:

Setup view directory

Render a page

Read HTML Page into a variable

Generate JSON Output for API

Module

This class is created to create plugable modules in your project. This class provides support of basic functions related to database and debugging. This class is dependent on optiwariindia\database and mysqli extension. You can create plugable modules by extending this class to your module as follows:

Debug option

You can use trace method to dump a variable in json format and stop execution of the code at the point as shown below:

class module1 extends optiwariindia\website\module {
  public function someFunctionName(someParameter){
   //Some operation here
   self::trace(VariableToBeTraced)
  }
}

Connecting Database

You can use init to initalize database within any module and get access to methods select,insert,update,delete and query as shown in example below:

class module1 extends optiwariindia\website\module {
 public function FunctionName($requiredParameters){
   $db=self::init();
   $info=$db->select(table,fields,clauses);
 }
}

We welcome suggestions and enhancements. Thanks for you cooperation


All versions of website with dependencies

PHP Build Version
Package Version
Requires optiwariindia/database Version ^1.2
optiwariindia/mail Version ^0.1.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 optiwariindia/website contains the following files

Loading the files please wait ....