Search by

sdkfabric / starwars

Starwars PHP SDK managed by SDK Fabric

Maintainers

Package info

github.com/sdk-fabric/starwars-php

Homepage

pkg:composer/sdkfabric/starwars

Transparency log

Fund package maintenance!

chriskapp

Statistics

Installs: 10 315

Dependents: 2

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.8 2025-03-02 18:26 UTC

This package is auto-updated.

Last update: 2026-09-06 00:00:35 UTC


README

This SDK is managed by the SDK Fabric project, a global infrastructure to automatically generate SDKs for every API.

You can find more information about this SDK at TypeHub: https://app.typehub.cloud/d/sdkfabric/starwars

Usage

<?php

require __DIR__ . '/vendor/autoload.php';

$client = new \SdkFabric\Starwars\Client::build('[access_token]');

// Get all the people.
$response = $client->people()->getall('search');

// Get a specific people.
$response = $client->people()->get('id');

// Get all the films.
$response = $client->film()->getall('search');

// Get a specific film.
$response = $client->film()->get('id');

// Get all the starships.
$response = $client->starship()->getall('search');

// Get a specific starship.
$response = $client->starship()->get('id');

// Get all the species.
$response = $client->species()->getall('search');

// Get a specific species.
$response = $client->species()->get('id');

// Get all the vehicles.
$response = $client->vehicle()->getall('search');

// Get a specific vehicle.
$response = $client->vehicle()->get('id');

// Get all the planets.
$response = $client->planet()->getall('search');

// Get a specific planet.
$response = $client->planet()->get('id');