clemours/starwarslib

demo package

1.2.1 2023-07-04 06:57 UTC

This package is auto-updated.

Last update: 2025-05-04 10:44:08 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.