Download the PHP package chefu/academy without Composer
On this page you can find all versions of the php package chefu/academy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download chefu/academy
More information about chefu/academy
Files in chefu/academy
Package academy
Short Description Official PHP client for the CheFu Academy API
License MIT
Homepage https://github.com/CheFu-code/CheFu-Academy-SDK
Informations about the package academy
CheFu Academy SDK
A fully typed TypeScript SDK, official multi-language client sources, and a language-neutral REST contract for interacting with the CheFu Academy platform. The npm package is designed for Node.js and modern JavaScript/TypeScript projects, while the same repository now ships first-party clients for Python, Go, Java, C#, PHP, Ruby, and cURL.
Features
- API key–based authentication
- Centralized API client
- Course listing & retrieval
- Video listing & retrieval
- Developer API key management
- Clean, minimal SDK design
- Full TypeScript typings
- OpenAPI contract for non-JS clients
- Official Python, Go, Java, C#, PHP, Ruby, and cURL client sources
- Multi-language examples for direct REST calls
- Ready for production & npm
Installation
or using yarn:
When installed in an interactive terminal, the package immediately opens an arrow-key setup menu so users can log in or register a new CheFu Academy account. CI and non-interactive installs skip the prompt automatically.
To skip account setup manually:
To run setup later:
Quick Start
Import the SDK
Initialize the client
By default, the SDK talks to the unified CheFu Inc API at
https://api.chefuinc.com/api. For local development or private deployments,
pass baseURL when creating the client.
Fetch courses
Other Languages
CheFu Academy is not limited to JavaScript/TypeScript. The SDK repository now includes official first-party clients, an OpenAPI contract, and simple HTTP examples for common languages:
Every language uses the same REST base URL:
And the same bearer API key header:
The non-JS client sources are maintained in this repo and shipped with the npm package. Go, NuGet, Packagist, and RubyGems releases are available now; dedicated PyPI and Maven Central releases still require their registry setup.
You can also generate additional clients from the OpenAPI contract:
See docs/multi-language.md for official client usage, generator commands, auth rules, pagination, and example usage. See docs/registry-publishing.md for the release runbook.
Available APIs
Courses
Videos
API Keys
API key management requires a logged-in developer user. You can pass a Firebase
ID token directly, or call sdk.auth.login() first and the SDK will attach the
returned token automatically.
Authentication
Authentication is handled automatically using your API key.
For Node.js terminal apps, you can prompt the user for their CheFu Academy email and password:
loginWithTerminal() masks password input when running in an interactive TTY.
The installed Node CLI uses the same auth endpoints:
Python users can install the matching CLI from PyPI:
Developer API keys can also be managed from the CLI after login:
The CLI stores your user login session locally and refreshes it when possible. API key creation still requires an authenticated developer account; passwords are prompted interactively and are never accepted as command-line flags.
Development
Scripts
Project Structure
Example Project
Requirements
- Node.js 18+
- TypeScript 5+ (optional but recommended)
License
MIT License © CheFu Academy
All versions of academy with dependencies
ext-curl Version *
ext-json Version *