PHPackages                             twom/laravel-axios - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. twom/laravel-axios

ActiveLibrary[HTTP &amp; Networking](/categories/http)

twom/laravel-axios
==================

axios request in laravel

0.6(5y ago)047PHPPHP ^7.2

Since May 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Twom2020/laravel-axios)[ Packagist](https://packagist.org/packages/twom/laravel-axios)[ Docs](https://github.com/Twom2020/laravel-axios)[ RSS](/packages/twom-laravel-axios/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (6)Dependencies (1)Versions (4)Used By (0)

Axios for PHP (Laravel)
-----------------------

[](#axios-for-php-laravel)

### Installation:

[](#installation)

```
composer require twom/laravel-axios

```

### Requests methods:

[](#requests-methods)

nameparameterspost`post($url, $data = [], $options = [])`get`get($url, $options = [])`put`put($url, $data = [], $options = [])`delete`delete($url, $options = [])`### Options:

[](#options)

nametypeexampleheader`string` or `array``name: value` or `[name => value]`url`string``http://url.domain/...`method`string``http://url.domain/...`return\_transfer`boolean``true` or `false`content`string`select from contents like `json`data`string ` or `array``[name => value]`### Mor methods:

[](#mor-methods)

nameparametersdescriptionoutput`$type` default as `json`get request responsesetContent`$contentType` default as `json`set content typesetOption`($option, $value)`set a curl optionsetDataType`$type`set sender dataType can be `json, query`setData`$data`set send datasetMethod`$method`set request send methodsetUrl`$url`set request urlsetHeader`$headers`curl headersExamples:
---------

[](#examples)

```
$data = Axios::post("http://your-url.com/...",
 [
	 "name" => "ali",
 ],
 [
	 "header" => [
		  "Authorization" => "any"
	  ],
 ])
 ->setContent()
 ->go()
 ->output('json');
```

> **Note:** convert output to `json`.

you can make a request like this:

```
$axios = Axios::make([
		  "url" => $url,
		  "method" => "post",
		]);
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

3

Last Release

2183d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d582fa00b58ea59b3302cdc8398dce78038edd6d11d38632394f7319796f9da8?d=identicon)[twom](/maintainers/twom)

---

Top Contributors

[![Twom2020](https://avatars.githubusercontent.com/u/61540013?v=4)](https://github.com/Twom2020 "Twom2020 (5 commits)")

---

Tags

requestcurlphp-curlaxioslaravel-requestcurl phpphp-requestcurl laravellaravel curlaxios laravellaravel axiosrequest laravelaxios phpphp axiosrequest php

### Embed Badge

![Health badge](/badges/twom-laravel-axios/health.svg)

```
[![Health](https://phpackages.com/badges/twom-laravel-axios/health.svg)](https://phpackages.com/packages/twom-laravel-axios)
```

###  Alternatives

[swlib/saber

Swoole coroutine HTTP client

985145.0k27](/packages/swlib-saber)[aplus/http-client

Aplus Framework HTTP Client Library

2161.6M1](/packages/aplus-http-client)[pear/http_request2

Provides an easy way to perform HTTP requests.

764.2M48](/packages/pear-http-request2)[stefangabos/zebra_curl

A high performance solution for making multiple HTTP requests concurrently, asynchronously from your PHP projects using cURL

21971.3k2](/packages/stefangabos-zebra-curl)[multirequest/multirequest

PHP library for easy and flexible multithread requests handling by CURL.

8331.7k1](/packages/multirequest-multirequest)[athlon1600/php-curl-client

Simple PHP cURL Client

13112.2k3](/packages/athlon1600-php-curl-client)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
