esign / laravel-outbound-ip
发现您的服务器的出口IP地址
1.1.0
2024-03-12 22:27 UTC
Requires
- php: ^8.0
- guzzlehttp/guzzle: ^7.0
- illuminate/http: ^8.0|^9.0|^10.0|^11.0
- illuminate/support: ^8.0|^9.0|^10.0|^11.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- orchestra/testbench: ^6.0|^7.0|^8.0|^9.0
- phpunit/phpunit: ^9.0|^10.0
This package is auto-updated.
Last update: 2024-09-12 23:31:53 UTC
README
此包提供了多种发现服务器出口IP地址的方法。
安装
您可以通过composer安装此包
composer require esign/laravel-outbound-ip
用法
此包提供了一个命令和一个路由来发现服务器的出口IP地址。这些不同的策略在您的服务器使用不同IP地址进行SSH请求和Web服务器请求时非常有用。
使用命令
要发现服务器SSH监禁的出口IP地址,您可以运行以下命令
php artisan outbound-ip
使用路由
要发现Web服务器的出口IP地址,您可以访问/outbound-ip
路由。
测试
composer test
许可证
MIT许可证(MIT)。有关更多信息,请参阅许可证文件。