

( new Query( '/ip/hotspot/ip-binding/print')) Create "where" Query object for RouterOS $query = Initiate client with config object $client = new Client([ Optionally, publish the configuration file if you want to change any defaults: php artisan vendor:publish -provider="RouterOS\\Laravel\\ServiceProvider"īasic example, analogue via command line is /ip hotspot ip-binding print: use \ RouterOS\ Client RouterOS\ Laravel\ ServiceProvider::class, (after composer require is done, of course), add into providers block of your config/app.php: 'providers' => [ If you are a happy owner of Laravel version less than 5.5, then in a project, which is using your package $client = \ RouterOS:: client( $config) Laravel installationīy default, the package will automatically register its service provider, but You also may get array with all configs which was obtained from routeros-api.php file: $config = \ RouterOS:: config([ $client = new \ RouterOS\ Client( $config) Ĭall facade and pass array of parameters to client method: $client = \ RouterOS:: client([ RouterOS API client is optimized for usage as normal Laravel package, all functional is available via \RouterOS facade,įor access to client object you need instead: $config = new \ RouterOS\ Config([ RouterOS firmware, it will be detected automatically on connection stage. You can use this library with pre-6.43 and post-6.43 versions of

To work with PHP7 in accordance with the PSR standards. This library is partly based on this old project, but unlike it has many RouterOS API Client composer require evilfreelancer/routeros-api-php
