Download the PHP package twom/laravel-axios without Composer
On this page you can find all versions of the php package twom/laravel-axios. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download twom/laravel-axios
More information about twom/laravel-axios
Files in twom/laravel-axios
Download twom/laravel-axios
More information about twom/laravel-axios
Files in twom/laravel-axios
Vendor twom
Package laravel-axios
Short Description axios request in laravel
License
Homepage https://github.com/Twom2020/laravel-axios
Package laravel-axios
Short Description axios request in laravel
License
Homepage https://github.com/Twom2020/laravel-axios
Please rate this library. Is it a good library?
Informations about the package laravel-axios
Axios for PHP (Laravel)
Installation:
Requests methods:
name | parameters |
---|---|
post | post($url, $data = [], $options = []) |
get | get($url, $options = []) |
put | put($url, $data = [], $options = []) |
delete | delete($url, $options = []) |
Options:
name | type | example |
---|---|---|
header | 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:
name | parameters | description |
---|---|---|
output | $type default as json |
get request response |
setContent | $contentType default as json |
set content type |
setOption | ($option, $value) |
set a curl option |
setDataType | $type |
set sender dataType can be json, query |
setData | $data |
set send data |
setMethod | $method |
set request send method |
setUrl | $url |
set request url |
setHeader | $headers |
curl headers |
Examples:
Note: convert output to
json
.
you can make a request like this:
All versions of laravel-axios with dependencies
PHP Build Version
Package Version
The package twom/laravel-axios contains the following files
Loading the files please wait ....