{"id":18810590,"url":"https://github.com/php-http/laravel-httplug","last_synced_at":"2025-04-13T20:31:04.252Z","repository":{"id":57039772,"uuid":"52097668","full_name":"php-http/laravel-httplug","owner":"php-http","description":"Laravel package for HTTPlug","archived":false,"fork":false,"pushed_at":"2020-06-05T08:30:37.000Z","size":18,"stargazers_count":12,"open_issues_count":5,"forks_count":3,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-08-05T17:33:59.219Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/php-http.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-19T15:42:10.000Z","updated_at":"2022-09-29T06:59:19.000Z","dependencies_parsed_at":"2022-08-23T23:30:22.667Z","dependency_job_id":null,"html_url":"https://github.com/php-http/laravel-httplug","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-http%2Flaravel-httplug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-http%2Flaravel-httplug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-http%2Flaravel-httplug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-http%2Flaravel-httplug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-http","download_url":"https://codeload.github.com/php-http/laravel-httplug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223603540,"owners_count":17172115,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T23:21:13.042Z","updated_at":"2024-11-07T23:21:13.656Z","avatar_url":"https://github.com/php-http.png","language":"PHP","readme":"# Laravel-Httplug\n\n[![Latest Version](https://img.shields.io/github/release/php-http/laravel-httplug.svg?style=flat-square)](https://github.com/php-http/laravel-httplug/releases)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)\n[![Build Status](https://img.shields.io/travis/php-http/laravel-httplug.svg?style=flat-square)](https://travis-ci.org/php-http/laravel-httplug)\n[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/php-http/laravel-httplug.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/laravel-httplug)\n[![Quality Score](https://img.shields.io/scrutinizer/g/php-http/laravel-httplug.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/laravel-httplug)\n[![Total Downloads](https://img.shields.io/packagist/dt/php-http/laravel-httplug.svg?style=flat-square)](https://packagist.org/packages/php-http/laravel-httplug)\n\n## Install\n\nVia Composer\n\n``` bash\n$ composer require php-http/laravel-httplug\n```\n\nWith Laravel 5.5 or newer, the package will be discovered automatically.\nIf you're using an older version of Laravel, add the following to your\n`config/app.php`:\n\n```php\n\u003c?php\n// config.app\n\n'providers' =\u003e [\n    ...,\n    ...,\n\n     Http\\Httplug\\HttplugServiceProvider::class,\n\n],\n\n'aliases' =\u003e [\n    ...,\n    ...,\n\n    'Httplug'   =\u003e Http\\Httplug\\Facade\\Httplug::class,\n\n],\n\n\n```\n\nPublish the package config file to `config/httplug.php`:\n\n```\nphp artisan vendor:publish --provider=\"Http\\Httplug\\HttplugServiceProvider\"\n```\n\n## Usage\n\n```php\n\u003c?php\n\n// Create a request using a MessageFactory\n$factory = app()-\u003emake('httplug.message_factory.default');\n$request = $factory-\u003ecreateRequest('GET', 'http://httpbin.org');\n\n$httplug = app()-\u003emake('httplug');\n\n// Send request with default driver\n$response = $httplug-\u003esendRequest($request);\n\n// Send request with another driver\n$response = $httplug-\u003edriver('curl')-\u003esendRequest($request);\n\n// Send request with default driver using facade\n$response = Httplug::sendRequest($request);\n\n// Send request with another driver using facade\n$response = Httplug::driver('curl')-\u003esendRequest($request)\n\n```\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n## Contributing\n\nPlease see our [contributing guide](http://docs.php-http.org/en/latest/development/contributing.html).\n\n## Security\n\nIf you discover any security related issues, please contact us at [security@php-http.org](mailto:security@php-http.org).\n\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-http%2Flaravel-httplug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-http%2Flaravel-httplug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-http%2Flaravel-httplug/lists"}