clemours/starwarslib

demo package

Installs: 7

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

pkg:composer/clemours/starwarslib

1.2.1 2023-07-04 06:57 UTC

This package is auto-updated.

Last update: 2025-12-04 12:07:36 UTC


README

_in progress_

Last version

not so far ago in a galaxy not so far away...

This library has the purpose to provide a simple way to get data from the Star Wars Website. It's Open Source so don't be shy to make it better for everyone !

Installation

composer req clemours/starwarslib

Local dev

composer install
php vendor/bin/phpstan analyse src --level=max
php vendor/bin/php-cs-fixer fix src --rules=@PSR12  
php vendor/bin/phpunit tests   

What can u get ?

How it works ?

  • I use XPath to get the content from the website

Take a look at my Api.php file to see more about it 🧑🏻‍💻

Usage

Run this command to render the list of the names get from the url

php build/index.php   

License

The MIT License (MIT). Please see License File for more information.