Download the PHP package phiconsultors/gcf without Composer

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

GCFramework for PHP

Introduction

This a minimal framework that uses other frameworks like Laminas, twig and many others to solve some business problems in PHP. Define Database layer like DataMappers that map to database table and database abstraction layer developed before PDO appears into market.

This library are part of a business application and is in development stage for separate to independent library.

Capabilities

Additionally incorporate drivers to connect to biometric terminal systems for ImesD Electrónica, supported models are:

Using library

This library is composer package and its available on packagist.org package repository. Can use from your current application or can create web application using this framework.

Create GCF application

You need initialize composer project application and then execute composer require:

Now you need create basic application structure like this:

On root that contains init.php to initialize application environment. In this example, only had simple index.php that initialize configuration envinronment and render simple TWIG template.

This file is included on main php (p.e: index.php) program that initialize GCF context.

And composer.json that contains project dependencies and general configuration. This file autogenerated with composer init

If you need application skeleton you can clone application example.

Basic usage

You can use some components/classes of this library without initialize Environment and Configuration. But if you need create application with database access and cache need create environment and configuration. The environment read configuration ini file that contains all application properties and initializes all database pool connections and cache connections.

Database drivers

Depends on your application properties GCF choose database backend driver to work with it.

You can use SQL sentences using:

Or create own models on database using Model abstraction data layer:

Queries

To execute directly any query can call SQLQuery class and work with results, like this:

this is a traditional fetch record until end of table using primitives.

db is a DatabaseConnector class type, can get from your Configurator class that extends from ConfiguratorBase with Configurator::getInstance()->db

Other way is using ResultSet, simplify the code:

Normally its recommended create own ResultSet and own Record to define accurately fields of each record and proper type of record that returns current record of ResultSet.

Models

Normally if you need work with your tables I recommend to create one model for each table. Each model extends directly to DataMapper, or class extends DataMapper. When you create your application with main database connection recommends create main base class called (for example: MyAppDatabaseModel) extends from DataMapper like this:

And if you need create model:

pk define a single field primary key and pyType the type (int or string can be supported). If you have composite key you need pass to pk and pkType an array of names of fields and types of each field on both arguments.

Pay attention because DataMapper use magic methods to access each field of table. Therefor you need to put comment before class declaration that contains list of properties to help to IDE detection

To use this model from your any part of your code can do this to create new record on USER table:

or can delete record with PK with this:

or modify vrecord using PK with this:

Modules

The GCF is model-view-controller framework and can help to create any API Controllers, Web Controllers, Views (Templates) and Models as described before. Modules are define controller part. The class modulBase and controllerBase defines this functionality and helps to create controllers as you need. To use modules you need instantiate Router to manage requests to modules.

controllerBase

This class defines controller base class. Its basic class that able to create new controllers for application. This clsas not support views only for basic controller like API controllers. Provides database connection context if is needed, logging context, application configuration context and basic filter input class that content incoming data from client.

modulBase

Extends from controllerBase and includes templates (view) functionality. Normally when you create view that returns dynamic HTML parsed from database data use modulBase.


All versions of gcf with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
ext-iconv Version *
ext-gearman Version *
ext-interbase Version *
ext-soap Version *
ext-mbstring Version *
ext-json Version *
ext-sockets Version *
ext-sqlite3 Version *
ext-dom Version *
ext-pdo Version *
ext-zip Version *
ext-libxml Version *
ext-ldap Version *
ext-redis Version *
ext-bcmath Version *
ext-intl Version *
phpoffice/phpspreadsheet Version ^2.2
mpdf/mpdf Version 8.2.*
twig/twig Version ^3.0
laminas/laminas-config Version 3.*
laminas/laminas-log Version 2.*
laminas/laminas-session Version 2.*
laminas/laminas-http Version 2.*
laminas/laminas-json Version 3.*
php-amqplib/php-amqplib Version 2.*
textcontrol/textcontrol-reportingcloud Version ^4.0
twig/intl-extra Version ^3.7
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 phiconsultors/gcf contains the following files

Loading the files please wait ....