Pular para o conteúdo principal

46 documentos marcados com "PHP"

PHP libraries and components

Ver todas as etiquetas

AnyDataset

Read any data source with the same code: a database, JSON, XML, a CSV or fixed-width file, a NoSQL store.

AnyDataset-Xml

Read an XML document as a table: choose the node that is a row, map each field with XPath, iterate the rows.

Bayesian Text Classifier

Classify text in PHP (spam or not, topic, language) with Bayesian filters that ask an LLM when they are unsure and learn from its answer. Two engines:

Cache Engine

PSR-6 and PSR-16 caching over memory, files, Redis or Memcached, extended with atomic increment, decrement and compare-and-swap.

Database Abstraction Layer

One API for every relational database, from a connection URI: MySQL, PostgreSQL, SQL Server, Oracle, SQLite,

FeatureFlag Dispatcher

Run code by feature flag without if blocks: register handlers, or mark methods with an attribute, and dispatch.

Fonema BR

Busca que entende o português do Brasil: "brasília" e "brazilia" viram a mesma chave, apesar dos erros de ortografia.

Gluo Core

The Gluo framework core — the glue ("gluo" is Esperanto for glue) that binds the

Gluo for Laravel

Use the ByJG components in Laravel with no effort: composer require a component, and its connector wires it into your application.

Gluo: PHP REST API Starter

Gluo (Esperanto for glue) is a production-ready PHP REST API starter: create a project you fully own, powered by an updatable framework core — so you focus on business logic, not infrastructure.

Image Manipulation Library

Image operations in one fluent line over GD: resize, crop, rotate, stamp, write text, and convert between formats, SVG included.

Jinja for PHP

Jinja2 templates in pure PHP: the same template renders in your Python and your PHP code.

JWT Session Handler

Keep using $_SESSION, but store the session in a signed JWT cookie instead of on the server: no Redis, no sticky sessions.

JWT Wrapper

Create and validate JWT tokens in a few lines, with the same API for a shared secret or a key pair, and no weak keys accepted.

LLM API Objects

Typed PHP objects for Chat Completions requests (messages, tools, tool calls) that work with both OpenAI and Ollama.

Mail Wrapper

One interface to send email, whatever the service behind it. Change the provider, or add a new one, without changing your code.

Message Queue Client

One interface to publish and consume messages, whatever the broker behind it. Change the queue, or write a new connector, without changing your code.

MicroOrm for PHP

A small ORM that maps any class to a table, and lets you choose the pattern per entity: Repository, Data Mapper or Active Record.

Multi-Format Serializer

One entry point to convert data from any supported format to any other: load it once, ask for the format you need.

PHPThread: Simplified Threads

Run PHP code in parallel with one API (threads, thread pools and JavaScript-like promises) that works on any PHP: real threads on ZTS, forked processes on the CLI, child processes under PHP-FPM.

RabbitMQ Client

It creates a simple abstraction layer to publish and consume messages from the RabbitMQ Server using the component byjg/message-queue-client.

Redis Queue Client

A simple and efficient abstraction layer for publishing and consuming messages from Redis queues using the byjg/message-queue-client framework.

Resilience

Utilities for the two things that go wrong when work is spread across processes: something is not

Rest Server

A REST server whose routes can come straight from your OpenAPI specification: document the API once, and that document is the router.

ShortID

Turn numbers and UUIDs into short, URL-friendly strings, and back.

Singleton Pattern

The singleton pattern as one trait: add it to a class, and that class has exactly one instance.

SMS Client

One interface to send SMS through any provider, and the right provider chosen by the phone number's country.

Soap Server

Publish a PHP class as a SOAP service with attributes: the WSDL and an HTML documentation page are generated for you.

State Machine

A finite state machine for business workflows: states from an enum, transitions with conditions, and side effects that run only after you persist the move.

String Conversion Utility

The text conversions UTF-8 code keeps rewriting, in one place: HTML entities, accents, emoji, MIME encoded words and ASCII-only text.

Swagger Test

Test your REST API against its OpenAPI specification with PHPUnit: every request and response is checked against the contract.

User Authentication

Users, passwords, tokens and per-user properties behind one service, on any database, without adopting a framework.

Wallets

Digital wallets with an audit trail you can trust: reserved funds, idempotent operations, and a transaction chain that cannot be rewritten unnoticed.

Web Request

A PSR-18 HTTP client on cURL, with its own PSR-7 messages, parallel requests and a mock client for tests, in one small package.

WordNumber

Write numbers and money amounts in words, with each language's grammar: English, Portuguese and Italian.

XML Utility

Build, query and convert XML without fighting DOM: a fluent API, XPath with namespaces, and PHP models mapped to XML with attributes.