PHP

laravel download file from s3 to local storage

laravel download file from s3 to local storage

laravel download file from s3 to local storage To download a file from Amazon S3 to your local storage using Laravel, you can use the AWS SDK for PHP which Laravel already includes as a dependency. Here’s an example of how to download a file from S3 to local storage: use IlluminateSupportFacadesStorage; use AwsS3S3Client; // […]

How to make oauth2 for here map API in php

How to make oauth2 for here map API in php

How to make oauth2 for here map API in php To make oauth2 authentication in PHP for here map you need bellow credentials:- 1) here.access.key.id 2) here.access.key.secret Now use below code snippet to create an access token $timer = (string) time(); $grant_type = ‘client_credentials’; $oauth_consumer_key = ‘here.access.key.id’; $oauth_nonce = uniqid(mt_rand(1, 1000)); $oauth_signature_method = ‘HMAC-SHA256’; $oauth_timestamp […]

How to integrate Binect APIs in php

How to integrate Binect APIs in php

In this tutorial, we are going to learn How to integrate Binect APIs in PHP. First thing you need to create the authorization code using your username and password like below:- Basic YW51anN0YXBsZUBnbWFpbC5jb206QW51akAxMjM= 1) Get user data Through the first binect API, we will get user data using PHP curl. You need to set the […]

Scroll to Top