Download the PHP package rattfieldnz/shodan without Composer
On this page you can find all versions of the php package rattfieldnz/shodan. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rattfieldnz/shodan
More information about rattfieldnz/shodan
Files in rattfieldnz/shodan
Package shodan
Short Description A laravel package to check URLs with Shodan API.
License MIT
Homepage https://github.com/rattfieldnz/shodan
Informations about the package shodan
Shodan
A laravel package to check URLs with Shodan API.
- Installation
- Register Service Provider
- Register Facade
- Register Facade
- Publish Configuration File
- Set your Shodan API key
- Usage
- Using Blade Syntax
- Using Facades
- Example with input and output (associative array)
- Example with input and output (JSON)
- Testing
- Security
- Credits
Installation
Install via composer
Register Service Provider
Note! This and next step are optional if you use laravel>=5.5 with package auto discovery feature.
Add service provider to config/app.php
in providers
section.
Register Facade
Register package facade in config/app.php
in aliases
section
Publish Configuration File
Set your Shodan API key
In your .env
, add:
Usage
Using Blade Syntax
getResults(true)
returns results as JSON-encoded string.
Using Facades
Or:
Example with input and output (associative array)
View EXAMPLE_INPUT_OUTPUT_ASSOCIATIVEARRAY.md.
Example with input and output (JSON)
View EXAMPLE_INPUT_OUTPUT_JSON.md.
Testing
From inside the root folder of this package:
Replace YOUR_SHODAN_API_KEY with your actual key. Get one by visiting https://developer.shodan.io/api.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
This package is bootstrapped with the help of melihovv/laravel-package-generator.
All versions of shodan with dependencies
ext-curl Version *
ext-json Version *
curl/curl Version ^2.2
illuminate/support Version ~8.31.0