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.
Download pyntax/pyntax
More information about pyntax/pyntax
Files in pyntax/pyntax
Package pyntax
Short Description Pyntax Framework is a ORM under construction.
License MIT
Homepage http://github.com/SahilDude89ss/PyntaxFormBuilder
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
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