PHPackages                             phiconsultors/gcf - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. phiconsultors/gcf

ActiveLibrary[Framework](/categories/framework)

phiconsultors/gcf
=================

General Corporate Framework

1.0.2(9mo ago)0244MITPHPPHP &gt;=8.2CI passing

Since Aug 27Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/tomeucapo/gcf)[ Packagist](https://packagist.org/packages/phiconsultors/gcf)[ RSS](/packages/phiconsultors-gcf/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (12)Versions (6)Used By (0)

GCFramework for PHP
===================

[](#gcframework-for-php)

Introduction
------------

[](#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
------------

[](#capabilities)

- Application configuration layer
- Database support:

    - Abstration BD driver layer, for:
        - Firebird
        - Oracle
        - SQLAnywere
        - PostgreSQL
    - Entity Data model abstraction layer: DataMapper, Record and ResultSet.
- Data Store model abstraction layer using K-V stores (REDIS, MEMCACHED).
- Data export capabilities, can define DataReport to different output formats: XSL, JSON or PDF.
- Task abstraction layer to execute tasks to job server, actual version only supports Gearman.
- Cache integration to: REDIS, Memcached or File based.
- Web layer utilities:

    - Controllers classes
    - Template engine: Support multi template libraries, now supports twig and patTemplate.
    - Controllers for API REST implementations

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

- CP-5000
- CP-6000

Using library
-------------

[](#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.

```
composer require phiconsultors/gcf

```

### Create GCF application

[](#create-gcf-application)

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

```
composer init
composer require phiconsultors/gcf

```

Now you need create basic application structure like this:

```
Myapp
│   composer.json
│   init.php
├───cfg
│   └───properties_dev.ini
├───app
├───data
│   └───models
└───frontal
    │   index.php
    │
    ├───cfg
    ├───modules
    ├───static
    │   ├───css
    │   ├───img
    │   └───jscript
    └───templates
            index.twig

```

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.

```
