Download the PHP package gemvc/connection-openswoole without Composer

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

openswoole-connection-poot

gemvc/connection-openswoole

PHPStan Unit Tests Integration Tests Class Coverage

OpenSwoole connection library implementation package for GEMVC framework.

Package Information

Purpose

This package provides OpenSwoole connection implementation for GEMVC framework:

  1. SwooleConnection - Real implementation that creates actual connection pools

    • Creates: Hyperf connection pools - REAL IMPLEMENTATION
    • Implements: ConnectionManagerInterface (from connection-contracts package)
    • Used by: Framework's connection management system
    • True connection pooling (not simple caching)
    • Supports multiple database drivers:
      • MySQL (default, primary) - Optimized with MySQL-specific features
      • PostgreSQL - Supported via standard PDO DSN format
      • Other PDO drivers - Via standard DSN format
  2. SwooleConnectionAdapter - Adapter that wraps Hyperf Connection instances
    • Wraps: Hyperf Connection instances (from connection pool)
    • Implements: ConnectionInterface (from connection-contracts package)
    • Used by: SwooleConnection to wrap Hyperf connections
    • Provides transaction management and connection release

It's designed for OpenSwoole environments where connections are shared across requests via connection pooling.

Features

Installation

Dependencies

Required

Framework Dependencies (Runtime)

Note: This package is framework-agnostic and only depends on connection-contracts and Hyperf. The framework should ensure $_ENV is populated before using this package.

Usage

Using the Real Implementation

MySQL (Default)

PostgreSQL

Using the Adapter

Architecture

This package provides two components that work together with connection-contracts:

1. SwooleConnection - Real Implementation

Creates actual connection pools:

Database Driver Support:

Configuration Methods:

  1. Environment Variables (default): Reads from $_ENV

Environment Variables:

2. SwooleConnectionAdapter - Adapter

Wraps existing Hyperf Connection instances:

Complete Flow

Integration with connection-contracts

Documentation

Refactoring & Improvements

The SwooleConnection class has undergone comprehensive refactoring to fix critical issues and improve code quality. See CODE_REVIEW.md for detailed explanation of how the class works.

Key Improvements

Refactoring Metrics

Testing

Running Tests

Test Results

Test Coverage

The package includes comprehensive test coverage:

Test Suites

Unit Tests (219 tests)

Integration Tests (27 tests)

Performance Tests (10 tests)

Security Tests (12 tests)

Generating Coverage Report

The HTML report will be generated in the coverage-report/ directory.

License

MIT


Made with ❤️ by Ali Khorsandfard

This package is part of the GEMVC Repository framework ecosystem.

GEMVC is PHP framework built for Microservice.


All versions of connection-openswoole with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
gemvc/connection-contracts Version ^1.0
hyperf/db-connection Version ^3.0
hyperf/di Version ^3.0
hyperf/config Version ^3.0
hyperf/event Version ^3.0
hyperf/utils Version ^3.0
hyperf/serializer Version ^3.0
hyperf/codec Version ^3.0
psr/container Version ^2.0
psr/event-dispatcher Version ^1.0
psr/log Version ^3.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 gemvc/connection-openswoole contains the following files

Loading the files please wait ...