Modern PHP Framework with
Auto-Generated TypeScript Clients

Contract-based routing meets type safety. Build PHP APIs with SOAP-like type safety for your Angular applications.

Why StoneScriptPHP?

📋

Contract-Based Routing

Define your API using PHP interfaces. StoneScriptPHP generates routes automatically.

🔒

Type-Safe Clients

Auto-generate TypeScript clients from your PHP DTOs. Full type safety from backend to frontend.

Developer Experience

CLI tools, code generation, and clear error messages. Build faster with confidence.

🅰️

Angular Integration

Official Angular client library with RxJS support and interceptor integration.

See It In Action

Write PHP contracts, get TypeScript clients automatically

Backend Contract (PHP)
Auto-Generated Client (TypeScript)
// Auto-generated TypeScript client
export class UserClient {
  getUser(id: number): Observable<UserDTO> {
    return this.http.post<UserDTO>('/api/user/getUser', { id });
  }

  createUser(dto: CreateUserDTO): Observable<UserDTO> {
    return this.http.post<UserDTO>('/api/user/createUser', dto);
  }
}

// Auto-generated TypeScript DTOs
export interface UserDTO {
  id: number;
  name: string;
  email: string;
}

Ready to Get Started?

Install StoneScriptPHP and build your first type-safe API in minutes