Download the PHP package devitools/serendipity without Composer

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

SonarQube Cloud

Reliability Rating Security Rating Quality Gate Status Maintainability Rating

Vulnerabilities Bugs Technical Debt Code Smells

Coverage Duplicated Lines (%) Lines of Code


Serendipity

O componente que faltava no Hyperf

Serendipity é uma biblioteca PHP que estende o framework Hyperf com funcionalidades avançadas de Domain-Driven Design ( DDD), validação inteligente, serialização automática e infraestrutura robusta para aplicações de alta performance.

🍿 Visão Geral

Serendipity preenche as lacunas do ecossistema Hyperf, oferecendo uma camada de abstração poderosa que combina os melhores padrões de desenvolvimento com a performance assíncrona do Hyperf. Utilizando o Constructo como base, oferece metaprogramação avançada para resolver dependências e formatar dados de forma flexível.

Principais Características

🚀 Instalação

Pré-requisitos

Instalação via Composer

Configuração Básica

Registre o ConfigProvider no seu config/config.php:

Configure as dependências em config/autoload/dependencies.php:

🎯 Funcionalidades Principais

Entidades com Tipagem Forte

Crie entidades robustas com validação automática e serialização inteligente:

Coleções Tipadas

Trabalhe com coleções type-safe que garantem integridade dos dados:

Validação de Input Inteligente

Sistema de validação integrado com Hyperf que suporta regras complexas:

Actions com Injeção de Dependência

Crie actions limpas com injeção automática de dependências:

🏗️ Arquitetura de Projeto com Serendipity

Estrutura recomendada para projetos que utilizam Serendipity, baseada em projetos reais em produção:

Organização das Camadas

Application Layer - Casos de uso e orquestração

Domain Layer - Lógica de negócio pura

Infrastructure Layer - Implementações técnicas

Presentation Layer - Interface com o mundo externo

Exemplo de Estrutura de Action

📋 Exemplos Práticos

Entidade User com Validação

Input de Validação para User

Action para Criação de User

Serviço de Domínio para User

Repositório de User

Implementação do Repositório

Coleção Tipada de Users

🧪 Testes

Serendipity fornece ferramentas robustas para testes:

⚡ Performance e Observabilidade

Logging Estruturado

Métricas e Monitoramento

🔧 Configuração Avançada

Schema e Especificações

Configure schemas personalizados em config/autoload/schema.php:

Middlewares Personalizados

📚 Comandos CLI

Serendipity inclui comandos úteis para desenvolvimento:

🤝 Contribuindo

Fork o projeto, crie uma branch para sua feature, commit suas mudanças, push para a branch e abra um Pull Request.

Padrões de Desenvolvimento

📄 Licença

Este projeto está licenciado sob a Licença MIT - veja o arquivo LICENSE para detalhes.

🔗 Links Relacionados


Serendipity - Descobrindo o potencial completo do Hyperf através de componentes elegantes e poderosos.


All versions of serendipity with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
ext-ds Version *
ext-json Version *
ext-mongodb Version *
ext-pdo Version *
ext-swoole Version *
devitools/constructo Version ^1.5.12
fakerphp/faker Version ^1.24
google/cloud-logging Version ^1.32
guzzlehttp/guzzle Version ^7.9
guzzlehttp/psr7 Version ^2.7
hyperf/cache Version ~3.1.0
hyperf/collection Version ^3.1
hyperf/command Version ^3.1
hyperf/config Version ~3.1.0
hyperf/config-apollo Version ~3.1.0
hyperf/config-center Version ^3.1
hyperf/constants Version ~3.1.0
hyperf/context Version ^3.1
hyperf/contract Version ^3.1
hyperf/coordinator Version ^3.1
hyperf/coroutine Version ^3.1
hyperf/database Version ^3.1
hyperf/database-pgsql Version ^3.1
hyperf/db Version ^3.1
hyperf/db-connection Version ^3.1
hyperf/di Version 3.1.*
hyperf/elasticsearch Version ~3.1.0
hyperf/engine Version ^2.10
hyperf/event Version ^3.1
hyperf/exception-handler Version ^3.1
hyperf/framework Version 3.1.*
hyperf/guzzle Version ~3.1.0
hyperf/http-message Version ^3.1
hyperf/http-server Version ^3.1
hyperf/json-rpc Version ~3.1.0
hyperf/logger Version ~3.1.0
hyperf/memory Version ~3.1.0
hyperf/model-cache Version ~3.1.0
hyperf/process Version ~3.1.0
hyperf/rpc Version ~3.1.0
hyperf/rpc-client Version ~3.1.0
hyperf/rpc-server Version ~3.1.0
hyperf/service-governance Version ~3.1.0
hyperf/support Version ^3.1
hyperf/tracer Version ~3.1.0
hyperf/validation Version ^3.1
jawira/case-converter Version ^3.5
mongodb/mongodb Version ^1.19
monolog/monolog Version ^2.9 || ^3.8
mustache/mustache Version ^2.14
php-ds/php-ds Version ^1.5
psr/container Version ^2.0
psr/event-dispatcher Version ^1.0
psr/http-client Version ^1.0
psr/http-message Version ^2.0
psr/http-server-handler Version ^1.0
psr/http-server-middleware Version ^1.0
psr/log Version ^3.0
rakibtg/sleekdb Version ^2.15
sentry/sentry Version ^4.11
swow/psr7-plus Version ^1.1
symfony/console Version ^7.2
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 devitools/serendipity contains the following files

Loading the files please wait ...