Download the PHP package pyntax/pyntax without Composer

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

PyntaxFramework

Everything you need for development. Documentation

Installation

Server Requirements

The Pyntax framework requires php version > 5.4.31.

Installing PyntaxFramework

Pyntax utilizes Composer to manage is dependencies. So, before using PyntaxFramework, make sure you have Composer installed on your machine.

Configuration

Basic Configuration

All of the configuration files for the Pyntax framework are stored in the config folder.

Bootloader

The following code is need to be added to the bootloader of the application. We need to specify the folder from which the config is suppose to be loaded.

Configure Database

Edit confing/config.php to add database details.

Create a Bean

In order to save or retrieve data from the database, we need to create a BEAN.

Save a Bean

Once the bean is retrieved, the new value can be set by using the following method. Once all the required data has been set, save() function is called to save the data in the database. When saving a new Bean save function will return id of the new Record, when updating it will return a boolean value.

Find a Bean

Once an empty bean is retrieved it can be used to search for data in the database.

This will load the data for record with primary key id 1 into the same bean.

Finding a Bean with AND and OR

A Bean can be used to search for data using an Array. The following is an example of using AND and OR at the same time.

The above code will generate the following query:

If the search results returns more than one bean, it will return an array with the associated bean or if the search returns only return one record it will return the object and also can be accessed from the base bean.

Generate a Form using a FormFactory and a Bean

A Bean can be used to generate a form which can be used to save and update bean in the database.

Config for Forms

The Form generator will automatically remove the primary fields. The above config array is used to set all the HTML properties of the form. The form will look as follows:

Generate a Table using TableFactory and a Bean

A bean and a find query can be used to generate a table. PyntaxDAO, for now automatically finds the fields which are eligible for displaying. It removes all id fields and only keep string fields.

Config for Tables


All versions of pyntax with dependencies

PHP Build Version
Package Version
Requires aura/sqlschema Version 2.*@dev
aura/sqlquery Version 2.*@dev
aura/html Version ^2.4
aura/session Version *
twig/twig Version ^1.21
zendframework/zend-cache Version ^2.5
pyntax/config Version ^1.0
pyntax/cache Version ^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 pyntax/pyntax contains the following files

Loading the files please wait ....