PHP code example of kfvit / laravel-trafikverket

1. Go to this page and download the library: Download kfvit/laravel-trafikverket library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kfvit / laravel-trafikverket example snippets

 php
Trafikverket::trainStations()->where('AdvertisedShortLocationName', 'Katrineholm')->get();