Skip to content

Commit 1d84ee0

Browse files
committed
Refactor namespaces from CAFernandes\ExpressPHP\CycleORM to Helix\CycleORM
- Updated all relevant files to reflect the new namespace structure. - Adjusted import statements across tests, commands, middleware, and health check classes. - Ensured consistency in the new Helix namespace throughout the codebase. - Added a new integration test for Helix to validate application lifecycle and middleware functionality. - Updated README to reflect changes in the testing framework and integration with HelixPHP.
1 parent 6003260 commit 1d84ee0

File tree

96 files changed

+546
-837
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+546
-837
lines changed

CHANGELOG.md

Lines changed: 82 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,84 @@
11
# Changelog
22

3-
Todas as mudanças notáveis deste projeto serão documentadas neste arquivo.
4-
5-
O formato é baseado em [Keep a Changelog](https://keepachangelog.com/pt-BR/1.0.0/),
6-
e este projeto adere ao [Semantic Versioning](https://semver.org/lang/pt-BR/).
7-
8-
## [1.1.0] - 2025-01-06
9-
10-
### Adicionado
11-
- **Guia de Integração Completo**: Nova documentação detalhada em `docs/integration-guide.md`
12-
- **Compatibilidade PHP 8.4**: Documentação sobre avisos de depreciação e soluções
13-
- **Badge PSR-12**: Indicador de conformidade com padrões no README
14-
- **Exemplos CRUD**: Implementação completa de API REST com todos os verbos HTTP
15-
- **Troubleshooting**: Seção dedicada para resolução de problemas comuns
16-
17-
### Alterado
18-
- **CycleMiddleware**: Agora cria corretamente o wrapper CycleRequest antes de passar para o próximo handler
19-
- **QueryLogger**: Método `clear()` renomeado para `clearLogs()` (mantendo alias para retrocompatibilidade)
20-
- **Documentação**: README atualizado com instruções claras sobre `chdir()` e estrutura de diretórios
21-
- **GitHub Actions**: Workflow CI atualizado para refletir comandos do ambiente local
22-
23-
### Corrigido
24-
- **CycleORMException**: Removido 4º parâmetro do construtor (context array)
25-
- **Type Checking**: Alterado de `instanceof ORM` para `instanceof ORMInterface` para maior flexibilidade
26-
- **Table Annotations**: Corrigida sintaxe de anotações nas entidades de teste
27-
- **CycleRequest**: Adicionados métodos `getAttribute()` e `setAttribute()` com tipos corretos
28-
29-
### Removido
30-
- **validateEntity()**: Método stub não utilizado removido do CycleRequest
31-
- **validateDatabaseConfig()** e **validateEntityConfig()**: Métodos stub não utilizados removidos do CycleServiceProvider
32-
33-
### Melhorias de Qualidade
34-
- **PSR-12**: Conformidade total validada com phpcs
35-
- **PHPStan**: Nível 9 sem erros ou avisos
36-
- **Testes**: 68 testes passando com sucesso
37-
- **Documentação**: Guias práticos e exemplos de uso real
38-
39-
## [1.0.2] - 2025-01-04
40-
### Adicionado
41-
- **Sistema de Testes Completo**: 68 testes automatizados (Unit, Feature, Database)
42-
- **PHPStan Nível 9**: Zero erros de tipagem estática
43-
- **CycleRequest**: Classe de request estendida com métodos ORM integrados
44-
- **Repository Factory**: Sistema de cache inteligente para repositórios
45-
- **Sistema de Monitoramento**: MetricsCollector, PerformanceProfiler, QueryLogger
46-
- **Middlewares Avançados**: TransactionMiddleware e EntityValidationMiddleware
47-
48-
### Melhorado
49-
- **Type Safety**: Todas as classes agora são 100% tipadas
50-
- **Arquitetura**: Refatoração completa seguindo SOLID principles
51-
- **Documentação**: README atualizado com exemplos práticos
52-
- **Testes**: Cobertura completa das funcionalidades principais
53-
- **Performance**: Cache de repositórios e otimização de queries
54-
55-
### Corrigido
56-
- **PHPStan Issues**: Todos os 245 erros de tipagem foram corrigidos
57-
- **Test Infrastructure**: Base de testes robusta com SQLite in-memory
58-
- **Entity Creation**: Método `entity()` agora popula dados corretamente
59-
- **Schema Registration**: Entidades de teste registradas no ORM
60-
61-
### Técnico
62-
- **Testing**: Excludes complex integration tests by default (`@group integration`)
63-
- **CI/CD Ready**: Configuração preparada para integração contínua
64-
- **PSR-12**: Padrões de código seguidos rigorosamente
65-
- **Monitoring**: Sistema completo de métricas e profiling em produção
66-
67-
## [1.0.0] - 2025-07-04
68-
### Adicionado
69-
- Estrutura inicial da extensão Express PHP Cycle ORM
70-
- Integração com Cycle ORM
71-
- Comandos CLI: migrate, schema, status, entity
72-
- Health check para banco de dados
73-
- Suporte a middlewares customizados
74-
- Documentação técnica inicial
3+
All notable changes to HelixPHP Cycle ORM will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [1.0.0] - 2024-01-07
9+
10+
### 🎉 Initial Release of HelixPHP Cycle ORM
11+
12+
First stable release of HelixPHP Cycle ORM integration, marking the rebrand from the previous namespace to HelixPHP.
13+
14+
### Added
15+
16+
#### Core Integration
17+
- Complete Cycle ORM integration with HelixPHP Core
18+
- CycleServiceProvider for seamless setup
19+
- CycleRequest class extending HelixPHP Request with ORM capabilities
20+
- Repository factory with type-safe implementations
21+
- Entity manager integration for persistence
22+
23+
#### Middleware Suite
24+
- **TransactionMiddleware**: Automatic transaction wrapping for routes
25+
- **EntityValidationMiddleware**: Request validation against entity rules
26+
- **HealthCheckMiddleware**: Database health monitoring
27+
- **CycleMiddleware**: Core middleware for ORM integration
28+
29+
#### Monitoring & Performance
30+
- **QueryLogger**: Track and analyze database queries
31+
- **PerformanceProfiler**: Profile database operations
32+
- **MetricsCollector**: Gather performance statistics
33+
- **CycleHealthCheck**: Monitor database connection health
34+
35+
#### CLI Commands
36+
- `cycle:entity` - Generate entity classes
37+
- `cycle:migrate` - Run database migrations
38+
- `cycle:schema` - Update database schema
39+
- `cycle:status` - Check database status
40+
41+
#### Developer Experience
42+
- Zero-configuration setup with sensible defaults
43+
- Type-safe repository pattern
44+
- Comprehensive helper functions
45+
- Integration with HelixPHP's validation system
46+
47+
### Changed
48+
- **Namespace Migration**: Changed from CAFernandes\ExpressPHP to Helix\CycleORM
49+
- **Package Name**: Now `helixphp/cycle-orm`
50+
- **Dependencies**: Updated to use `helixphp/core` instead of `cafernandes/express-php`
51+
- **PHP Version**: Requires PHP 8.1+
52+
53+
### Testing
54+
- 67 comprehensive tests covering all features
55+
- Unit, feature, and integration test suites
56+
- Mock implementations for testing
57+
- Test helpers and utilities
58+
59+
### Documentation
60+
- Complete integration guide
61+
- Quick reference documentation
62+
- Example implementations
63+
- Migration guide from previous versions
64+
65+
### Quality
66+
- PHPStan Level 9 compliance
67+
- PSR-12 code style
68+
- Comprehensive type coverage
69+
- Performance optimized
70+
71+
---
72+
73+
## Previous History
74+
75+
### [1.1.0] - Previous Namespace
76+
- Added complete integration guide
77+
- PHP 8.4 compatibility updates
78+
- PSR-12 compliance improvements
79+
- CRUD examples
80+
81+
### [1.0.0] - Previous Namespace
82+
- Initial release under previous namespace
83+
- Basic Cycle ORM integration
84+
- Core middleware implementation

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contribuindo com o Express PHP Cycle ORM Extension
1+
# Contribuindo com o HelixPHP Cycle ORM Extension
22

33
Obrigado por considerar contribuir com este projeto!
44

0 commit comments

Comments
 (0)