I want to retrieve a file content (it is read not download) from a private repository in bitbucket?
In this dock it says basic authentication (username/password)
, but I dont know how to implement it in PHP.
$data = file_get_contents(username/password@https://bitbucket.org/myname/repositoryname/src/master/foldre1/file.txt);