Open Source Tech Hub
Open Source Tech Hub
May 4, 2025 · Backend Development

Building a Model Context Protocol (MCP) Server with PHP 8 Attributes

This guide explains how to use the php-mcp/server library to create a standards‑compliant Model Context Protocol (MCP) server in PHP 8, covering installation, key features, attribute‑based definitions, configuration, transport options, discovery, and code examples for a simple stdio server.

AttributesCLIHTTP+SSE
0 likes · 15 min read
Building a Model Context Protocol (MCP) Server with PHP 8 Attributes
Open Source Tech Hub
Open Source Tech Hub
Dec 15, 2024 · Backend Development

Mastering PHP IoC: Build a Singleton Container from Scratch

This tutorial explains how to create a lightweight Inversion of Control (IoC) container in PHP, covering the singleton pattern, binding services, PSR‑11 compliance, retrieving and injecting dependencies, and implementing class and method resolvers with practical code examples.

Dependency InjectionIoCPHP
0 likes · 16 min read
Mastering PHP IoC: Build a Singleton Container from Scratch