Contract-based routing meets type safety. Build PHP APIs with SOAP-like type safety for your Angular applications.
Define your API using PHP interfaces. StoneScriptPHP generates routes automatically.
Auto-generate TypeScript clients from your PHP DTOs. Full type safety from backend to frontend.
CLI tools, code generation, and clear error messages. Build faster with confidence.
Official Angular client library with RxJS support and interceptor integration.
Write PHP contracts, get TypeScript clients automatically
// 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;
}
Install StoneScriptPHP and build your first type-safe API in minutes