Questions tagged [thephpleague]

64 questions
0
votes
1 answer

How to extract zip file on remote server using Laravel?

I'm using Laravel 5.7 and have remote server for uploading files. I'm trying to upload files from application server to remote server using league/flysystem-sftp. Everything works fine for static files but now i want to upload ZIP and unzip on…
0
votes
1 answer

Can thephpleague/color-extractor be used without autoload.php (composer)?

I'my trying to use color-extractor to get the colours of my images but I'm having trouble getting it working. I noticed a missing autoload.php file in the package and after some googling it seems it requires that you use Composer. I haven't used…
Joe Hamilton
  • 665
  • 2
  • 9
  • 19
0
votes
1 answer

Why is rawurlencode required twice here?

This function is pretty cool and works well in all except one situation of mine. /** * * @param string $url * @param array $params * @return string */ public static function getUrlWithUpdatedParams($url, $params) { $uri =…
Ryan
  • 22,332
  • 31
  • 176
  • 357
0
votes
0 answers

Connecting from webserver to SFTP server / firewall issues

I am trying to connect to a remote SFTP server via Phpleagues Flysystem. The remote SFTP server's firewall only allows the IP address of our webserver. In my understanding, when a client accesses our website an API request from the client is sent…
santacruz
  • 1,236
  • 2
  • 12
  • 24
0
votes
1 answer

League\Csv Read Without Filtering Empty Rows/Lines

I'm using League\Csv to reformat CSVs. I'm reading in a CSV, manipulating the data, then writing the result out to a new CSV. Reading the docs it says when reading a CSV it will Filter out the empty lines; Is there any way to stop this from…
Theo Kouzelis
  • 3,195
  • 5
  • 37
  • 66
0
votes
0 answers

Using strict_types=1 with dependency container useless?

Consider this simple class: user = $user; } public function post () { return 'New…
IMB
  • 15,163
  • 19
  • 82
  • 140
0
votes
1 answer

How to add OAuth2 Server on a CakePHP 3 plugin

I am working on a plugin in CakePHP3 and I need to create a simply Oauth 2.0 Server API that allows to do a simple CRUD on the users' table and create sessions when needed. I have done some research here in StackOverflow and it seems that the best…
Nico Anastasio
  • 144
  • 1
  • 11
0
votes
0 answers

Why am I getting an irrelevant ErrorException for blank csv columns in attempt to import with League\CSV?

I have this: $csv = Reader::createFromPath(__DIR__.'/data/manufacturers.csv', 'r'); $csv->setHeaderOffset(0); $headers = $csv->getHeader(); $records = $csv->getRecords(); foreach ($records as $r) { $cols = array_combine($headers, $r); …
user163831
  • 1,031
  • 3
  • 13
  • 25
0
votes
1 answer

Inject repository into phpleague/oauth-server:authServer

I'm currently trying to set up the phpleague/oauth-server in a symfony 3.3 project. For that reason i want to specify the AuthorizationServer as service to be able to load it from the container (an not set up the whole thing everywhere its used). To…
FMK
  • 1,062
  • 1
  • 14
  • 25
0
votes
1 answer

How to insert associative array into csv using thephpleague

I have used thephpleague library into laravel5.1 http://csv.thephpleague.com/inserting/ I want an example to add associative array into CSV. Right now I have used this functions insertOne($array) for header of CSV and insertAll($array) for their…
Progi1990
  • 57
  • 1
  • 3
  • 13
0
votes
1 answer

Laravel and Glide renaming an image

I've implemented Laravel Clyde https://github.com/antennaio/laravel-clyde which is an wrapper for Glide https://github.com/thephpleague/glide This set-up works for uploading, caching and retrieving images etc. However I need to be able to rename an…
DrKHunter
  • 424
  • 5
  • 15
0
votes
1 answer

how to install omnipay in laravel 5.1?

I am installing OmniPay but do not see it anywhere that classes should I put in the file app.php Documentation only tells how to install with composer, but it shows what i have to put in the file app.php, that put…
Radames E. Hernandez
  • 4,235
  • 27
  • 37
0
votes
1 answer

Route not triggering in Laravel 4.2

I have a folder with images in it at example.com/img/, and at the same time I have a route get('img/{path}', 'ImageController@output'); But when I try going to example.com/img/someimagepath and if image name is someimagepath I get that image…
Vuk Stanković
  • 7,864
  • 10
  • 41
  • 65
0
votes
1 answer

Using parseincludes in Laravel5 Fractal

Struggling using parseIncludes in https://github.com/thephpleague/fractal. I have two tables, Property and Weeks. Each property has many weeks. Using Fractal I can return my property item with a collection of weeks. What I want to do is use…
0
votes
1 answer

How to make availableIncludes work in thephpleague/fractal

I'm having trouble implementing Fractal includes. I am trying to include posts with a particular user. All goes well when I add 'posts' to $defaultIncludes at the top of my UserItemTransformer. Posts are included as expected. However, posts are NOT…