Posts of PHP
Server-Sent Events - What are they and why you should use them
Discover Server-Sent Events (SSE), a simple yet powerful technique for delivering real-time data from server to client. This blog post explores how SSE works, its advantages over polling and WebSockets, and practical use cases like live notifications, data dashboards, and more. Learn how SSE leverages standard web technology for efficient, one-way communication.
How PCOV helps me have a better Test suites PHP, Laravel
PCOV is a lightweight and fast code coverage driver that has significantly improved my Test-Driven Development (TDD) workflow. By generating precise coverage reports, PCOV highlights tested and untested areas of code, helping identify gaps in test cases. Unlike Xdebug, which offers broader features like debugging and profiling, PCOV focuses solely on code coverage, making it faster and ideal for integration with CI/CD pipelines and tools like SonarQube. Its simplicity and performance make it a valuable tool for ensuring code quality and maintaining robust test coverage.