clemours / starwarslib
demo package
1.2.1
2023-07-04 06:57 UTC
Requires
- php: >=8.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.20
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^9.6||^10.2
README
_in progress_
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 ?
- Names from the databank url (https://www.starwars.com/databank)
- More to come soon !
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.