ReviewOS

also looking at this

meemalabs/flysystem-meema

Master

#10
Merged glennmichael123 wants to merge master into main
3 files +1400 -487
composer.jsonmodified+3-1
Changes to composer.json
@@ -19,7 +19,9 @@
1919 ],
2020 "require": {
2121 "php": "^7.0 || ^8.0",
22 "league/flysystem-aws-s3-v3": "~2.0"
22 "guzzlehttp/guzzle": "^7.3",
23 "league/flysystem": "^1.0.70",
24 "meema/meema-client-php": "dev-main"
2325 },
2426 "require-dev": {
2527 "symfony/var-dumper": "^5.2",
composer.lockmodified+1136-486
Changes to composer.lock
@@ -4,97 +4,160 @@
44 "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
55 "This file is @generated automatically"
66 ],
7 "content-hash": "2b03d73ce355901d9cd04b9ba1a36c9a",
7 "content-hash": "ef60a3e914466e520694bdc7a34efb46",
88 "packages": [
99 {
10 "name": "aws/aws-sdk-php",
11 "version": "3.178.4",
10 "name": "doctrine/inflector",
11 "version": "2.0.3",
1212 "source": {
1313 "type": "git",
14 "url": "https://github.com/aws/aws-sdk-php.git",
15 "reference": "fc3667c6054c941ae8cd8b8750f7c5c892d5a87b"
14 "url": "https://github.com/doctrine/inflector.git",
15 "reference": "9cf661f4eb38f7c881cac67c75ea9b00bf97b210"
1616 },
1717 "dist": {
1818 "type": "zip",
19 "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/fc3667c6054c941ae8cd8b8750f7c5c892d5a87b",
20 "reference": "fc3667c6054c941ae8cd8b8750f7c5c892d5a87b",
19 "url": "https://api.github.com/repos/doctrine/inflector/zipball/9cf661f4eb38f7c881cac67c75ea9b00bf97b210",
20 "reference": "9cf661f4eb38f7c881cac67c75ea9b00bf97b210",
2121 "shasum": ""
2222 },
2323 "require": {
24 "ext-json": "*",
25 "ext-pcre": "*",
26 "ext-simplexml": "*",
27 "guzzlehttp/guzzle": "^5.3.3|^6.2.1|^7.0",
28 "guzzlehttp/promises": "^1.4.0",
29 "guzzlehttp/psr7": "^1.7.0",
30 "mtdowling/jmespath.php": "^2.6",
31 "php": ">=5.5"
24 "php": "^7.2 || ^8.0"
3225 },
3326 "require-dev": {
34 "andrewsville/php-token-reflection": "^1.4",
35 "aws/aws-php-sns-message-validator": "~1.0",
36 "behat/behat": "~3.0",
37 "doctrine/cache": "~1.4",
38 "ext-dom": "*",
39 "ext-openssl": "*",
40 "ext-pcntl": "*",
41 "ext-sockets": "*",
42 "nette/neon": "^2.3",
43 "paragonie/random_compat": ">= 2",
44 "phpunit/phpunit": "^4.8.35|^5.4.3",
45 "psr/cache": "^1.0",
46 "psr/simple-cache": "^1.0",
47 "sebastian/comparator": "^1.2.3"
48 },
49 "suggest": {
50 "aws/aws-php-sns-message-validator": "To validate incoming SNS notifications",
51 "doctrine/cache": "To use the DoctrineCacheAdapter",
52 "ext-curl": "To send requests using cURL",
53 "ext-openssl": "Allows working with CloudFront private distributions and verifying received SNS messages",
54 "ext-sockets": "To use client-side monitoring"
27 "doctrine/coding-standard": "^7.0",
28 "phpstan/phpstan": "^0.11",
29 "phpstan/phpstan-phpunit": "^0.11",
30 "phpstan/phpstan-strict-rules": "^0.11",
31 "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0"
5532 },
5633 "type": "library",
5734 "extra": {
5835 "branch-alias": {
59 "dev-master": "3.0-dev"
36 "dev-master": "2.0.x-dev"
6037 }
6138 },
6239 "autoload": {
6340 "psr-4": {
64 "Aws\\": "src/"
65 },
66 "files": [
67 "src/functions.php"
68 ]
41 "Doctrine\\Inflector\\": "lib/Doctrine/Inflector"
42 }
6943 },
7044 "notification-url": "https://packagist.org/downloads/",
7145 "license": [
72 "Apache-2.0"
46 "MIT"
7347 ],
7448 "authors": [
7549 {
76 "name": "Amazon Web Services",
77 "homepage": "http://aws.amazon.com"
50 "name": "Guilherme Blanco",
51 "email": "guilhermeblanco@gmail.com"
52 },
53 {
54 "name": "Roman Borschel",
55 "email": "roman@code-factory.org"
56 },
57 {
58 "name": "Benjamin Eberlei",
59 "email": "kontakt@beberlei.de"
60 },
61 {
62 "name": "Jonathan Wage",
63 "email": "jonwage@gmail.com"
64 },
65 {
66 "name": "Johannes Schmitt",
67 "email": "schmittjoh@gmail.com"
7868 }
7969 ],
80 "description": "AWS SDK for PHP - Use Amazon Web Services in your PHP project",
81 "homepage": "http://aws.amazon.com/sdkforphp",
70 "description": "PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words.",
71 "homepage": "https://www.doctrine-project.org/projects/inflector.html",
8272 "keywords": [
83 "amazon",
84 "aws",
85 "cloud",
86 "dynamodb",
87 "ec2",
88 "glacier",
89 "s3",
90 "sdk"
73 "inflection",
74 "inflector",
75 "lowercase",
76 "manipulation",
77 "php",
78 "plural",
79 "singular",
80 "strings",
81 "uppercase",
82 "words"
9183 ],
92 "support": {
93 "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80",
94 "issues": "https://github.com/aws/aws-sdk-php/issues",
95 "source": "https://github.com/aws/aws-sdk-php/tree/3.178.4"
84 "funding": [
85 {
86 "url": "https://www.doctrine-project.org/sponsorship.html",
87 "type": "custom"
88 },
89 {
90 "url": "https://www.patreon.com/phpdoctrine",
91 "type": "patreon"
92 },
93 {
94 "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finflector",
95 "type": "tidelift"
96 }
97 ],
98 "time": "2020-05-29T15:13:26+00:00"
99 },
100 {
101 "name": "graham-campbell/result-type",
102 "version": "v1.0.1",
103 "source": {
104 "type": "git",
105 "url": "https://github.com/GrahamCampbell/Result-Type.git",
106 "reference": "7e279d2cd5d7fbb156ce46daada972355cea27bb"
107 },
108 "dist": {
109 "type": "zip",
110 "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/7e279d2cd5d7fbb156ce46daada972355cea27bb",
111 "reference": "7e279d2cd5d7fbb156ce46daada972355cea27bb",
112 "shasum": ""
113 },
114 "require": {
115 "php": "^7.0|^8.0",
116 "phpoption/phpoption": "^1.7.3"
117 },
118 "require-dev": {
119 "phpunit/phpunit": "^6.5|^7.5|^8.5|^9.0"
120 },
121 "type": "library",
122 "extra": {
123 "branch-alias": {
124 "dev-master": "1.0-dev"
125 }
126 },
127 "autoload": {
128 "psr-4": {
129 "GrahamCampbell\\ResultType\\": "src/"
130 }
96131 },
97 "time": "2021-04-14T18:16:00+00:00"
132 "notification-url": "https://packagist.org/downloads/",
133 "license": [
134 "MIT"
135 ],
136 "authors": [
137 {
138 "name": "Graham Campbell",
139 "email": "graham@alt-three.com"
140 }
141 ],
142 "description": "An Implementation Of The Result Type",
143 "keywords": [
144 "Graham Campbell",
145 "GrahamCampbell",
146 "Result Type",
147 "Result-Type",
148 "result"
149 ],
150 "funding": [
151 {
152 "url": "https://github.com/GrahamCampbell",
153 "type": "github"
154 },
155 {
156 "url": "https://tidelift.com/funding/github/packagist/graham-campbell/result-type",
157 "type": "tidelift"
158 }
159 ],
160 "time": "2020-04-13T13:17:36+00:00"
98161 },
99162 {
100163 "name": "guzzlehttp/guzzle",
@@ -175,10 +238,6 @@
175238 "rest",
176239 "web service"
177240 ],
178 "support": {
179 "issues": "https://github.com/guzzle/guzzle/issues",
180 "source": "https://github.com/guzzle/guzzle/tree/7.3.0"
181 },
182241 "funding": [
183242 {
184243 "url": "https://github.com/GrahamCampbell",
@@ -248,10 +307,6 @@
248307 "keywords": [
249308 "promise"
250309 ],
251 "support": {
252 "issues": "https://github.com/guzzle/promises/issues",
253 "source": "https://github.com/guzzle/promises/tree/1.4.1"
254 },
255310 "time": "2021-03-07T09:25:29+00:00"
256311 },
257312 {
@@ -323,50 +378,86 @@
323378 "uri",
324379 "url"
325380 ],
326 "support": {
327 "issues": "https://github.com/guzzle/psr7/issues",
328 "source": "https://github.com/guzzle/psr7/tree/1.8.1"
329 },
330381 "time": "2021-03-21T16:25:00+00:00"
331382 },
332383 {
333 "name": "league/flysystem",
334 "version": "2.0.5",
384 "name": "illuminate/collections",
385 "version": "v8.38.0",
335386 "source": {
336387 "type": "git",
337 "url": "https://github.com/thephpleague/flysystem.git",
338 "reference": "27ea64cc9d61ae7b6a5f04bebf062d89dd18e8f7"
388 "url": "https://github.com/illuminate/collections.git",
389 "reference": "21690cd5591f2d42d792e5e4a687f9beba829f1d"
339390 },
340391 "dist": {
341392 "type": "zip",
342 "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/27ea64cc9d61ae7b6a5f04bebf062d89dd18e8f7",
343 "reference": "27ea64cc9d61ae7b6a5f04bebf062d89dd18e8f7",
393 "url": "https://api.github.com/repos/illuminate/collections/zipball/21690cd5591f2d42d792e5e4a687f9beba829f1d",
394 "reference": "21690cd5591f2d42d792e5e4a687f9beba829f1d",
344395 "shasum": ""
345396 },
346397 "require": {
347 "ext-json": "*",
348 "league/mime-type-detection": "^1.0.0",
349 "php": "^7.2 || ^8.0"
398 "illuminate/contracts": "^8.0",
399 "illuminate/macroable": "^8.0",
400 "php": "^7.3|^8.0"
350401 },
351 "conflict": {
352 "guzzlehttp/ringphp": "<1.1.1"
402 "suggest": {
403 "symfony/var-dumper": "Required to use the dump method (^5.1.4)."
353404 },
354 "require-dev": {
355 "async-aws/s3": "^1.5",
356 "async-aws/simple-s3": "^1.0",
357 "aws/aws-sdk-php": "^3.132.4",
358 "composer/semver": "^3.0",
359 "ext-fileinfo": "*",
360 "friendsofphp/php-cs-fixer": "^2.16",
361 "google/cloud-storage": "^1.23",
362 "phpseclib/phpseclib": "^2.0",
363 "phpstan/phpstan": "^0.12.26",
364 "phpunit/phpunit": "^8.5 || ^9.4"
405 "type": "library",
406 "extra": {
407 "branch-alias": {
408 "dev-master": "8.x-dev"
409 }
410 },
411 "autoload": {
412 "psr-4": {
413 "Illuminate\\Support\\": ""
414 },
415 "files": [
416 "helpers.php"
417 ]
418 },
419 "notification-url": "https://packagist.org/downloads/",
420 "license": [
421 "MIT"
422 ],
423 "authors": [
424 {
425 "name": "Taylor Otwell",
426 "email": "taylor@laravel.com"
427 }
428 ],
429 "description": "The Illuminate Collections package.",
430 "homepage": "https://laravel.com",
431 "time": "2021-04-14T11:48:08+00:00"
432 },
433 {
434 "name": "illuminate/contracts",
435 "version": "v8.38.0",
436 "source": {
437 "type": "git",
438 "url": "https://github.com/illuminate/contracts.git",
439 "reference": "5764f703ea8f74ced163125d810951cd5ef2b7e1"
440 },
441 "dist": {
442 "type": "zip",
443 "url": "https://api.github.com/repos/illuminate/contracts/zipball/5764f703ea8f74ced163125d810951cd5ef2b7e1",
444 "reference": "5764f703ea8f74ced163125d810951cd5ef2b7e1",
445 "shasum": ""
446 },
447 "require": {
448 "php": "^7.3|^8.0",
449 "psr/container": "^1.0",
450 "psr/simple-cache": "^1.0"
365451 },
366452 "type": "library",
453 "extra": {
454 "branch-alias": {
455 "dev-master": "8.x-dev"
456 }
457 },
367458 "autoload": {
368459 "psr-4": {
369 "League\\Flysystem\\": "src"
460 "Illuminate\\Contracts\\": ""
370461 }
371462 },
372463 "notification-url": "https://packagist.org/downloads/",
@@ -375,71 +466,171 @@
375466 ],
376467 "authors": [
377468 {
378 "name": "Frank de Jonge",
379 "email": "info@frankdejonge.nl"
469 "name": "Taylor Otwell",
470 "email": "taylor@laravel.com"
380471 }
381472 ],
382 "description": "File storage abstraction for PHP",
383 "keywords": [
384 "WebDAV",
385 "aws",
386 "cloud",
387 "file",
388 "files",
389 "filesystem",
390 "filesystems",
391 "ftp",
392 "s3",
393 "sftp",
394 "storage"
395 ],
396 "support": {
397 "issues": "https://github.com/thephpleague/flysystem/issues",
398 "source": "https://github.com/thephpleague/flysystem/tree/2.0.5"
473 "description": "The Illuminate Contracts package.",
474 "homepage": "https://laravel.com",
475 "time": "2021-04-01T13:09:31+00:00"
476 },
477 {
478 "name": "illuminate/macroable",
479 "version": "v8.38.0",
480 "source": {
481 "type": "git",
482 "url": "https://github.com/illuminate/macroable.git",
483 "reference": "300aa13c086f25116b5f3cde3ca54ff5c822fb05"
399484 },
400 "funding": [
401 {
402 "url": "https://offset.earth/frankdejonge",
403 "type": "custom"
404 },
485 "dist": {
486 "type": "zip",
487 "url": "https://api.github.com/repos/illuminate/macroable/zipball/300aa13c086f25116b5f3cde3ca54ff5c822fb05",
488 "reference": "300aa13c086f25116b5f3cde3ca54ff5c822fb05",
489 "shasum": ""
490 },
491 "require": {
492 "php": "^7.3|^8.0"
493 },
494 "type": "library",
495 "extra": {
496 "branch-alias": {
497 "dev-master": "8.x-dev"
498 }
499 },
500 "autoload": {
501 "psr-4": {
502 "Illuminate\\Support\\": ""
503 }
504 },
505 "notification-url": "https://packagist.org/downloads/",
506 "license": [
507 "MIT"
508 ],
509 "authors": [
405510 {
406 "url": "https://github.com/frankdejonge",
407 "type": "github"
511 "name": "Taylor Otwell",
512 "email": "taylor@laravel.com"
513 }
514 ],
515 "description": "The Illuminate Macroable package.",
516 "homepage": "https://laravel.com",
517 "time": "2020-10-27T15:20:30+00:00"
518 },
519 {
520 "name": "illuminate/support",
521 "version": "v8.38.0",
522 "source": {
523 "type": "git",
524 "url": "https://github.com/illuminate/support.git",
525 "reference": "735391f31e145aad4f7aff3d9736ef70452dd1fe"
526 },
527 "dist": {
528 "type": "zip",
529 "url": "https://api.github.com/repos/illuminate/support/zipball/735391f31e145aad4f7aff3d9736ef70452dd1fe",
530 "reference": "735391f31e145aad4f7aff3d9736ef70452dd1fe",
531 "shasum": ""
532 },
533 "require": {
534 "doctrine/inflector": "^1.4|^2.0",
535 "ext-json": "*",
536 "ext-mbstring": "*",
537 "illuminate/collections": "^8.0",
538 "illuminate/contracts": "^8.0",
539 "illuminate/macroable": "^8.0",
540 "nesbot/carbon": "^2.31",
541 "php": "^7.3|^8.0",
542 "voku/portable-ascii": "^1.4.8"
543 },
544 "conflict": {
545 "tightenco/collect": "<5.5.33"
546 },
547 "suggest": {
548 "illuminate/filesystem": "Required to use the composer class (^8.0).",
549 "league/commonmark": "Required to use Str::markdown() and Stringable::markdown() (^1.3).",
550 "ramsey/uuid": "Required to use Str::uuid() (^4.0).",
551 "symfony/process": "Required to use the composer class (^5.1.4).",
552 "symfony/var-dumper": "Required to use the dd function (^5.1.4).",
553 "vlucas/phpdotenv": "Required to use the Env class and env helper (^5.2)."
554 },
555 "type": "library",
556 "extra": {
557 "branch-alias": {
558 "dev-master": "8.x-dev"
559 }
560 },
561 "autoload": {
562 "psr-4": {
563 "Illuminate\\Support\\": ""
408564 },
565 "files": [
566 "helpers.php"
567 ]
568 },
569 "notification-url": "https://packagist.org/downloads/",
570 "license": [
571 "MIT"
572 ],
573 "authors": [
409574 {
410 "url": "https://tidelift.com/funding/github/packagist/league/flysystem",
411 "type": "tidelift"
575 "name": "Taylor Otwell",
576 "email": "taylor@laravel.com"
412577 }
413578 ],
414 "time": "2021-04-11T15:03:35+00:00"
579 "description": "The Illuminate Support package.",
580 "homepage": "https://laravel.com",
581 "time": "2021-04-15T11:51:39+00:00"
415582 },
416583 {
417 "name": "league/flysystem-aws-s3-v3",
418 "version": "2.0.5",
584 "name": "league/flysystem",
585 "version": "1.1.3",
419586 "source": {
420587 "type": "git",
421 "url": "https://github.com/thephpleague/flysystem-aws-s3-v3.git",
422 "reference": "43b4cea4fc0d80378d947c306df96a749cdded35"
588 "url": "https://github.com/thephpleague/flysystem.git",
589 "reference": "9be3b16c877d477357c015cec057548cf9b2a14a"
423590 },
424591 "dist": {
425592 "type": "zip",
426 "url": "https://api.github.com/repos/thephpleague/flysystem-aws-s3-v3/zipball/43b4cea4fc0d80378d947c306df96a749cdded35",
427 "reference": "43b4cea4fc0d80378d947c306df96a749cdded35",
593 "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/9be3b16c877d477357c015cec057548cf9b2a14a",
594 "reference": "9be3b16c877d477357c015cec057548cf9b2a14a",
428595 "shasum": ""
429596 },
430597 "require": {
431 "aws/aws-sdk-php": "^3.132.4",
432 "league/flysystem": "^2.0.0",
433 "league/mime-type-detection": "^1.0.0",
434 "php": "^7.2 || ^8.0"
598 "ext-fileinfo": "*",
599 "league/mime-type-detection": "^1.3",
600 "php": "^7.2.5 || ^8.0"
435601 },
436602 "conflict": {
437 "guzzlehttp/ringphp": "<1.1.1"
603 "league/flysystem-sftp": "<1.0.6"
604 },
605 "require-dev": {
606 "phpspec/prophecy": "^1.11.1",
607 "phpunit/phpunit": "^8.5.8"
608 },
609 "suggest": {
610 "ext-fileinfo": "Required for MimeType",
611 "ext-ftp": "Allows you to use FTP server storage",
612 "ext-openssl": "Allows you to use FTPS server storage",
613 "league/flysystem-aws-s3-v2": "Allows you to use S3 storage with AWS SDK v2",
614 "league/flysystem-aws-s3-v3": "Allows you to use S3 storage with AWS SDK v3",
615 "league/flysystem-azure": "Allows you to use Windows Azure Blob storage",
616 "league/flysystem-cached-adapter": "Flysystem adapter decorator for metadata caching",
617 "league/flysystem-eventable-filesystem": "Allows you to use EventableFilesystem",
618 "league/flysystem-rackspace": "Allows you to use Rackspace Cloud Files",
619 "league/flysystem-sftp": "Allows you to use SFTP server storage via phpseclib",
620 "league/flysystem-webdav": "Allows you to use WebDAV storage",
621 "league/flysystem-ziparchive": "Allows you to use ZipArchive adapter",
622 "spatie/flysystem-dropbox": "Allows you to use Dropbox storage",
623 "srmklive/flysystem-dropbox-v2": "Allows you to use Dropbox storage for PHP 5 applications"
438624 },
439625 "type": "library",
626 "extra": {
627 "branch-alias": {
628 "dev-master": "1.1-dev"
629 }
630 },
440631 "autoload": {
441632 "psr-4": {
442 "League\\Flysystem\\AwsS3V3\\": ""
633 "League\\Flysystem\\": "src/"
443634 }
444635 },
445636 "notification-url": "https://packagist.org/downloads/",
@@ -449,24 +640,36 @@
449640 "authors": [
450641 {
451642 "name": "Frank de Jonge",
452 "email": "info@frankdejonge.nl"
643 "email": "info@frenky.net"
453644 }
454645 ],
455 "description": "AWS S3 filesystem adapter for Flysystem.",
646 "description": "Filesystem abstraction: Many filesystems, one API.",
456647 "keywords": [
457 "Flysystem",
648 "Cloud Files",
649 "WebDAV",
650 "abstraction",
458651 "aws",
459 "file",
652 "cloud",
653 "copy.com",
654 "dropbox",
655 "file systems",
460656 "files",
461657 "filesystem",
658 "filesystems",
659 "ftp",
660 "rackspace",
661 "remote",
462662 "s3",
663 "sftp",
463664 "storage"
464665 ],
465 "support": {
466 "issues": "https://github.com/thephpleague/flysystem-aws-s3-v3/issues",
467 "source": "https://github.com/thephpleague/flysystem-aws-s3-v3/tree/2.0.5"
468 },
469 "time": "2021-04-11T09:05:38+00:00"
666 "funding": [
667 {
668 "url": "https://offset.earth/frankdejonge",
669 "type": "other"
670 }
671 ],
672 "time": "2020-08-23T07:39:11+00:00"
470673 },
471674 {
472675 "name": "league/mime-type-detection",
@@ -508,10 +711,6 @@
508711 }
509712 ],
510713 "description": "Mime-type detection for Flysystem",
511 "support": {
512 "issues": "https://github.com/thephpleague/mime-type-detection/issues",
513 "source": "https://github.com/thephpleague/mime-type-detection/tree/1.7.0"
514 },
515714 "funding": [
516715 {
517716 "url": "https://github.com/frankdejonge",
@@ -525,43 +724,37 @@
525724 "time": "2021-01-18T20:58:21+00:00"
526725 },
527726 {
528 "name": "mtdowling/jmespath.php",
529 "version": "2.6.0",
727 "name": "meema/meema-client-php",
728 "version": "dev-main",
530729 "source": {
531730 "type": "git",
532 "url": "https://github.com/jmespath/jmespath.php.git",
533 "reference": "42dae2cbd13154083ca6d70099692fef8ca84bfb"
731 "url": "https://github.com/meemalabs/meema-client-php.git",
732 "reference": "f4a5766ab9194e17e5524a269c7d3188a8385441"
534733 },
535734 "dist": {
536735 "type": "zip",
537 "url": "https://api.github.com/repos/jmespath/jmespath.php/zipball/42dae2cbd13154083ca6d70099692fef8ca84bfb",
538 "reference": "42dae2cbd13154083ca6d70099692fef8ca84bfb",
736 "url": "https://api.github.com/repos/meemalabs/meema-client-php/zipball/f4a5766ab9194e17e5524a269c7d3188a8385441",
737 "reference": "f4a5766ab9194e17e5524a269c7d3188a8385441",
539738 "shasum": ""
540739 },
541740 "require": {
542 "php": "^5.4 || ^7.0 || ^8.0",
543 "symfony/polyfill-mbstring": "^1.17"
741 "guzzlehttp/guzzle": "^7.2",
742 "illuminate/support": "^8.35",
743 "php": "^7.0|^8.0",
744 "vlucas/phpdotenv": "^5.3"
544745 },
545746 "require-dev": {
546 "composer/xdebug-handler": "^1.4",
547 "phpunit/phpunit": "^4.8.36 || ^7.5.15"
747 "orchestra/testbench": "^6.17",
748 "pestphp/pest": "^1.0"
548749 },
549 "bin": [
550 "bin/jp.php"
551 ],
552 "type": "library",
553 "extra": {
554 "branch-alias": {
555 "dev-master": "2.6-dev"
556 }
750 "suggest": {
751 "illuminate/support": "If you prefer to work with Collections instead of arrays, you need to require this package"
557752 },
753 "type": "library",
558754 "autoload": {
559755 "psr-4": {
560 "JmesPath\\": "src/"
561 },
562 "files": [
563 "src/JmesPath.php"
564 ]
756 "Meema\\MeemaApi\\": "src"
757 }
565758 },
566759 "notification-url": "https://packagist.org/downloads/",
567760 "license": [
@@ -569,21 +762,222 @@
569762 ],
570763 "authors": [
571764 {
572 "name": "Michael Dowling",
573 "email": "mtdowling@gmail.com",
574 "homepage": "https://github.com/mtdowling"
765 "name": "Chris Breuer",
766 "email": "chris@cion.agency",
767 "homepage": "https://cion.agency",
768 "role": "Developer"
575769 }
576770 ],
577 "description": "Declaratively specify how to extract elements from a JSON document",
771 "description": "⚡️ A fully-featured & blazing-fast PHP API client to interact with Meema. 🐑",
772 "homepage": "https://github.com/meemalabs/meema-client-php",
578773 "keywords": [
579 "json",
580 "jsonpath"
774 "Media management",
775 "Meema",
776 "api",
777 "image editing",
778 "meema-client",
779 "video conversions",
780 "video converter"
781 ],
782 "time": "2021-04-22T05:21:14+00:00"
783 },
784 {
785 "name": "nesbot/carbon",
786 "version": "2.46.0",
787 "source": {
788 "type": "git",
789 "url": "https://github.com/briannesbitt/Carbon.git",
790 "reference": "2fd2c4a77d58a4e95234c8a61c5df1f157a91bf4"
791 },
792 "dist": {
793 "type": "zip",
794 "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/2fd2c4a77d58a4e95234c8a61c5df1f157a91bf4",
795 "reference": "2fd2c4a77d58a4e95234c8a61c5df1f157a91bf4",
796 "shasum": ""
797 },
798 "require": {
799 "ext-json": "*",
800 "php": "^7.1.8 || ^8.0",
801 "symfony/polyfill-mbstring": "^1.0",
802 "symfony/translation": "^3.4 || ^4.0 || ^5.0"
803 },
804 "require-dev": {
805 "doctrine/orm": "^2.7",
806 "friendsofphp/php-cs-fixer": "^2.14 || ^3.0",
807 "kylekatarnls/multi-tester": "^2.0",
808 "phpmd/phpmd": "^2.9",
809 "phpstan/extension-installer": "^1.0",
810 "phpstan/phpstan": "^0.12.54",
811 "phpunit/phpunit": "^7.5.20 || ^8.5.14",
812 "squizlabs/php_codesniffer": "^3.4"
813 },
814 "bin": [
815 "bin/carbon"
581816 ],
582 "support": {
583 "issues": "https://github.com/jmespath/jmespath.php/issues",
584 "source": "https://github.com/jmespath/jmespath.php/tree/2.6.0"
817 "type": "library",
818 "extra": {
819 "branch-alias": {
820 "dev-master": "2.x-dev",
821 "dev-3.x": "3.x-dev"
822 },
823 "laravel": {
824 "providers": [
825 "Carbon\\Laravel\\ServiceProvider"
826 ]
827 },
828 "phpstan": {
829 "includes": [
830 "extension.neon"
831 ]
832 }
833 },
834 "autoload": {
835 "psr-4": {
836 "Carbon\\": "src/Carbon/"
837 }
838 },
839 "notification-url": "https://packagist.org/downloads/",
840 "license": [
841 "MIT"
842 ],
843 "authors": [
844 {
845 "name": "Brian Nesbitt",
846 "email": "brian@nesbot.com",
847 "homepage": "http://nesbot.com"
848 },
849 {
850 "name": "kylekatarnls",
851 "homepage": "http://github.com/kylekatarnls"
852 }
853 ],
854 "description": "An API extension for DateTime that supports 281 different languages.",
855 "homepage": "http://carbon.nesbot.com",
856 "keywords": [
857 "date",
858 "datetime",
859 "time"
860 ],
861 "funding": [
862 {
863 "url": "https://opencollective.com/Carbon",
864 "type": "open_collective"
865 },
866 {
867 "url": "https://tidelift.com/funding/github/packagist/nesbot/carbon",
868 "type": "tidelift"
869 }
870 ],
871 "time": "2021-02-24T17:30:44+00:00"
872 },
873 {
874 "name": "phpoption/phpoption",
875 "version": "1.7.5",
876 "source": {
877 "type": "git",
878 "url": "https://github.com/schmittjoh/php-option.git",
879 "reference": "994ecccd8f3283ecf5ac33254543eb0ac946d525"
880 },
881 "dist": {
882 "type": "zip",
883 "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/994ecccd8f3283ecf5ac33254543eb0ac946d525",
884 "reference": "994ecccd8f3283ecf5ac33254543eb0ac946d525",
885 "shasum": ""
886 },
887 "require": {
888 "php": "^5.5.9 || ^7.0 || ^8.0"
889 },
890 "require-dev": {
891 "bamarni/composer-bin-plugin": "^1.4.1",
892 "phpunit/phpunit": "^4.8.35 || ^5.7.27 || ^6.5.6 || ^7.0 || ^8.0 || ^9.0"
893 },
894 "type": "library",
895 "extra": {
896 "branch-alias": {
897 "dev-master": "1.7-dev"
898 }
899 },
900 "autoload": {
901 "psr-4": {
902 "PhpOption\\": "src/PhpOption/"
903 }
904 },
905 "notification-url": "https://packagist.org/downloads/",
906 "license": [
907 "Apache-2.0"
908 ],
909 "authors": [
910 {
911 "name": "Johannes M. Schmitt",
912 "email": "schmittjoh@gmail.com"
913 },
914 {
915 "name": "Graham Campbell",
916 "email": "graham@alt-three.com"
917 }
918 ],
919 "description": "Option Type for PHP",
920 "keywords": [
921 "language",
922 "option",
923 "php",
924 "type"
925 ],
926 "funding": [
927 {
928 "url": "https://github.com/GrahamCampbell",
929 "type": "github"
930 },
931 {
932 "url": "https://tidelift.com/funding/github/packagist/phpoption/phpoption",
933 "type": "tidelift"
934 }
935 ],
936 "time": "2020-07-20T17:29:33+00:00"
937 },
938 {
939 "name": "psr/container",
940 "version": "1.1.1",
941 "source": {
942 "type": "git",
943 "url": "https://github.com/php-fig/container.git",
944 "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf"
945 },
946 "dist": {
947 "type": "zip",
948 "url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf",
949 "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf",
950 "shasum": ""
951 },
952 "require": {
953 "php": ">=7.2.0"
954 },
955 "type": "library",
956 "autoload": {
957 "psr-4": {
958 "Psr\\Container\\": "src/"
959 }
585960 },
586 "time": "2020-07-31T21:01:56+00:00"
961 "notification-url": "https://packagist.org/downloads/",
962 "license": [
963 "MIT"
964 ],
965 "authors": [
966 {
967 "name": "PHP-FIG",
968 "homepage": "https://www.php-fig.org/"
969 }
970 ],
971 "description": "Common Container Interface (PHP FIG PSR-11)",
972 "homepage": "https://github.com/php-fig/container",
973 "keywords": [
974 "PSR-11",
975 "container",
976 "container-interface",
977 "container-interop",
978 "psr"
979 ],
980 "time": "2021-03-05T17:36:06+00:00"
587981 },
588982 {
589983 "name": "psr/http-client",
@@ -632,9 +1026,6 @@
6321026 "psr",
6331027 "psr-18"
6341028 ],
635 "support": {
636 "source": "https://github.com/php-fig/http-client/tree/master"
637 },
6381029 "time": "2020-06-29T06:28:15+00:00"
6391030 },
6401031 {
@@ -685,11 +1076,56 @@
6851076 "request",
6861077 "response"
6871078 ],
688 "support": {
689 "source": "https://github.com/php-fig/http-message/tree/master"
690 },
6911079 "time": "2016-08-06T14:39:51+00:00"
6921080 },
1081 {
1082 "name": "psr/simple-cache",
1083 "version": "1.0.1",
1084 "source": {
1085 "type": "git",
1086 "url": "https://github.com/php-fig/simple-cache.git",
1087 "reference": "408d5eafb83c57f6365a3ca330ff23aa4a5fa39b"
1088 },
1089 "dist": {
1090 "type": "zip",
1091 "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/408d5eafb83c57f6365a3ca330ff23aa4a5fa39b",
1092 "reference": "408d5eafb83c57f6365a3ca330ff23aa4a5fa39b",
1093 "shasum": ""
1094 },
1095 "require": {
1096 "php": ">=5.3.0"
1097 },
1098 "type": "library",
1099 "extra": {
1100 "branch-alias": {
1101 "dev-master": "1.0.x-dev"
1102 }
1103 },
1104 "autoload": {
1105 "psr-4": {
1106 "Psr\\SimpleCache\\": "src/"
1107 }
1108 },
1109 "notification-url": "https://packagist.org/downloads/",
1110 "license": [
1111 "MIT"
1112 ],
1113 "authors": [
1114 {
1115 "name": "PHP-FIG",
1116 "homepage": "http://www.php-fig.org/"
1117 }
1118 ],
1119 "description": "Common interfaces for simple caching",
1120 "keywords": [
1121 "cache",
1122 "caching",
1123 "psr",
1124 "psr-16",
1125 "simple-cache"
1126 ],
1127 "time": "2017-10-23T01:57:42+00:00"
1128 },
6931129 {
6941130 "name": "ralouphie/getallheaders",
6951131 "version": "3.0.3",
@@ -728,11 +1164,86 @@
7281164 }
7291165 ],
7301166 "description": "A polyfill for getallheaders.",
1167 "time": "2019-03-08T08:55:37+00:00"
1168 },
1169 {
1170 "name": "symfony/polyfill-ctype",
1171 "version": "v1.22.1",
1172 "source": {
1173 "type": "git",
1174 "url": "https://github.com/symfony/polyfill-ctype.git",
1175 "reference": "c6c942b1ac76c82448322025e084cadc56048b4e"
1176 },
1177 "dist": {
1178 "type": "zip",
1179 "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/c6c942b1ac76c82448322025e084cadc56048b4e",
1180 "reference": "c6c942b1ac76c82448322025e084cadc56048b4e",
1181 "shasum": ""
1182 },
1183 "require": {
1184 "php": ">=7.1"
1185 },
1186 "suggest": {
1187 "ext-ctype": "For best performance"
1188 },
1189 "type": "library",
1190 "extra": {
1191 "branch-alias": {
1192 "dev-main": "1.22-dev"
1193 },
1194 "thanks": {
1195 "name": "symfony/polyfill",
1196 "url": "https://github.com/symfony/polyfill"
1197 }
1198 },
1199 "autoload": {
1200 "psr-4": {
1201 "Symfony\\Polyfill\\Ctype\\": ""
1202 },
1203 "files": [
1204 "bootstrap.php"
1205 ]
1206 },
1207 "notification-url": "https://packagist.org/downloads/",
1208 "license": [
1209 "MIT"
1210 ],
1211 "authors": [
1212 {
1213 "name": "Gert de Pagter",
1214 "email": "BackEndTea@gmail.com"
1215 },
1216 {
1217 "name": "Symfony Community",
1218 "homepage": "https://symfony.com/contributors"
1219 }
1220 ],
1221 "description": "Symfony polyfill for ctype functions",
1222 "homepage": "https://symfony.com",
1223 "keywords": [
1224 "compatibility",
1225 "ctype",
1226 "polyfill",
1227 "portable"
1228 ],
7311229 "support": {
732 "issues": "https://github.com/ralouphie/getallheaders/issues",
733 "source": "https://github.com/ralouphie/getallheaders/tree/develop"
1230 "source": "https://github.com/symfony/polyfill-ctype/tree/v1.22.1"
7341231 },
735 "time": "2019-03-08T08:55:37+00:00"
1232 "funding": [
1233 {
1234 "url": "https://symfony.com/sponsor",
1235 "type": "custom"
1236 },
1237 {
1238 "url": "https://github.com/fabpot",
1239 "type": "github"
1240 },
1241 {
1242 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
1243 "type": "tidelift"
1244 }
1245 ],
1246 "time": "2021-01-07T16:49:33+00:00"
7361247 },
7371248 {
7381249 "name": "symfony/polyfill-mbstring",
@@ -749,28 +1260,423 @@
7491260 "shasum": ""
7501261 },
7511262 "require": {
752 "php": ">=7.1"
1263 "php": ">=7.1"
1264 },
1265 "suggest": {
1266 "ext-mbstring": "For best performance"
1267 },
1268 "type": "library",
1269 "extra": {
1270 "branch-alias": {
1271 "dev-main": "1.22-dev"
1272 },
1273 "thanks": {
1274 "name": "symfony/polyfill",
1275 "url": "https://github.com/symfony/polyfill"
1276 }
1277 },
1278 "autoload": {
1279 "psr-4": {
1280 "Symfony\\Polyfill\\Mbstring\\": ""
1281 },
1282 "files": [
1283 "bootstrap.php"
1284 ]
1285 },
1286 "notification-url": "https://packagist.org/downloads/",
1287 "license": [
1288 "MIT"
1289 ],
1290 "authors": [
1291 {
1292 "name": "Nicolas Grekas",
1293 "email": "p@tchwork.com"
1294 },
1295 {
1296 "name": "Symfony Community",
1297 "homepage": "https://symfony.com/contributors"
1298 }
1299 ],
1300 "description": "Symfony polyfill for the Mbstring extension",
1301 "homepage": "https://symfony.com",
1302 "keywords": [
1303 "compatibility",
1304 "mbstring",
1305 "polyfill",
1306 "portable",
1307 "shim"
1308 ],
1309 "support": {
1310 "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.22.1"
1311 },
1312 "funding": [
1313 {
1314 "url": "https://symfony.com/sponsor",
1315 "type": "custom"
1316 },
1317 {
1318 "url": "https://github.com/fabpot",
1319 "type": "github"
1320 },
1321 {
1322 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
1323 "type": "tidelift"
1324 }
1325 ],
1326 "time": "2021-01-22T09:19:47+00:00"
1327 },
1328 {
1329 "name": "symfony/polyfill-php80",
1330 "version": "v1.22.1",
1331 "source": {
1332 "type": "git",
1333 "url": "https://github.com/symfony/polyfill-php80.git",
1334 "reference": "dc3063ba22c2a1fd2f45ed856374d79114998f91"
1335 },
1336 "dist": {
1337 "type": "zip",
1338 "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/dc3063ba22c2a1fd2f45ed856374d79114998f91",
1339 "reference": "dc3063ba22c2a1fd2f45ed856374d79114998f91",
1340 "shasum": ""
1341 },
1342 "require": {
1343 "php": ">=7.1"
1344 },
1345 "type": "library",
1346 "extra": {
1347 "branch-alias": {
1348 "dev-main": "1.22-dev"
1349 },
1350 "thanks": {
1351 "name": "symfony/polyfill",
1352 "url": "https://github.com/symfony/polyfill"
1353 }
1354 },
1355 "autoload": {
1356 "psr-4": {
1357 "Symfony\\Polyfill\\Php80\\": ""
1358 },
1359 "files": [
1360 "bootstrap.php"
1361 ],
1362 "classmap": [
1363 "Resources/stubs"
1364 ]
1365 },
1366 "notification-url": "https://packagist.org/downloads/",
1367 "license": [
1368 "MIT"
1369 ],
1370 "authors": [
1371 {
1372 "name": "Ion Bazan",
1373 "email": "ion.bazan@gmail.com"
1374 },
1375 {
1376 "name": "Nicolas Grekas",
1377 "email": "p@tchwork.com"
1378 },
1379 {
1380 "name": "Symfony Community",
1381 "homepage": "https://symfony.com/contributors"
1382 }
1383 ],
1384 "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions",
1385 "homepage": "https://symfony.com",
1386 "keywords": [
1387 "compatibility",
1388 "polyfill",
1389 "portable",
1390 "shim"
1391 ],
1392 "support": {
1393 "source": "https://github.com/symfony/polyfill-php80/tree/v1.22.1"
1394 },
1395 "funding": [
1396 {
1397 "url": "https://symfony.com/sponsor",
1398 "type": "custom"
1399 },
1400 {
1401 "url": "https://github.com/fabpot",
1402 "type": "github"
1403 },
1404 {
1405 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
1406 "type": "tidelift"
1407 }
1408 ],
1409 "time": "2021-01-07T16:49:33+00:00"
1410 },
1411 {
1412 "name": "symfony/translation",
1413 "version": "v5.2.6",
1414 "source": {
1415 "type": "git",
1416 "url": "https://github.com/symfony/translation.git",
1417 "reference": "2cc7f45d96db9adfcf89adf4401d9dfed509f4e1"
1418 },
1419 "dist": {
1420 "type": "zip",
1421 "url": "https://api.github.com/repos/symfony/translation/zipball/2cc7f45d96db9adfcf89adf4401d9dfed509f4e1",
1422 "reference": "2cc7f45d96db9adfcf89adf4401d9dfed509f4e1",
1423 "shasum": ""
1424 },
1425 "require": {
1426 "php": ">=7.2.5",
1427 "symfony/polyfill-mbstring": "~1.0",
1428 "symfony/polyfill-php80": "^1.15",
1429 "symfony/translation-contracts": "^2.3"
1430 },
1431 "conflict": {
1432 "symfony/config": "<4.4",
1433 "symfony/dependency-injection": "<5.0",
1434 "symfony/http-kernel": "<5.0",
1435 "symfony/twig-bundle": "<5.0",
1436 "symfony/yaml": "<4.4"
1437 },
1438 "provide": {
1439 "symfony/translation-implementation": "2.3"
1440 },
1441 "require-dev": {
1442 "psr/log": "~1.0",
1443 "symfony/config": "^4.4|^5.0",
1444 "symfony/console": "^4.4|^5.0",
1445 "symfony/dependency-injection": "^5.0",
1446 "symfony/finder": "^4.4|^5.0",
1447 "symfony/http-kernel": "^5.0",
1448 "symfony/intl": "^4.4|^5.0",
1449 "symfony/service-contracts": "^1.1.2|^2",
1450 "symfony/yaml": "^4.4|^5.0"
1451 },
1452 "suggest": {
1453 "psr/log-implementation": "To use logging capability in translator",
1454 "symfony/config": "",
1455 "symfony/yaml": ""
1456 },
1457 "type": "library",
1458 "autoload": {
1459 "files": [
1460 "Resources/functions.php"
1461 ],
1462 "psr-4": {
1463 "Symfony\\Component\\Translation\\": ""
1464 },
1465 "exclude-from-classmap": [
1466 "/Tests/"
1467 ]
1468 },
1469 "notification-url": "https://packagist.org/downloads/",
1470 "license": [
1471 "MIT"
1472 ],
1473 "authors": [
1474 {
1475 "name": "Fabien Potencier",
1476 "email": "fabien@symfony.com"
1477 },
1478 {
1479 "name": "Symfony Community",
1480 "homepage": "https://symfony.com/contributors"
1481 }
1482 ],
1483 "description": "Provides tools to internationalize your application",
1484 "homepage": "https://symfony.com",
1485 "funding": [
1486 {
1487 "url": "https://symfony.com/sponsor",
1488 "type": "custom"
1489 },
1490 {
1491 "url": "https://github.com/fabpot",
1492 "type": "github"
1493 },
1494 {
1495 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
1496 "type": "tidelift"
1497 }
1498 ],
1499 "time": "2021-03-23T19:33:48+00:00"
1500 },
1501 {
1502 "name": "symfony/translation-contracts",
1503 "version": "v2.4.0",
1504 "source": {
1505 "type": "git",
1506 "url": "https://github.com/symfony/translation-contracts.git",
1507 "reference": "95c812666f3e91db75385749fe219c5e494c7f95"
1508 },
1509 "dist": {
1510 "type": "zip",
1511 "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/95c812666f3e91db75385749fe219c5e494c7f95",
1512 "reference": "95c812666f3e91db75385749fe219c5e494c7f95",
1513 "shasum": ""
1514 },
1515 "require": {
1516 "php": ">=7.2.5"
1517 },
1518 "suggest": {
1519 "symfony/translation-implementation": ""
1520 },
1521 "type": "library",
1522 "extra": {
1523 "branch-alias": {
1524 "dev-main": "2.4-dev"
1525 },
1526 "thanks": {
1527 "name": "symfony/contracts",
1528 "url": "https://github.com/symfony/contracts"
1529 }
1530 },
1531 "autoload": {
1532 "psr-4": {
1533 "Symfony\\Contracts\\Translation\\": ""
1534 }
1535 },
1536 "notification-url": "https://packagist.org/downloads/",
1537 "license": [
1538 "MIT"
1539 ],
1540 "authors": [
1541 {
1542 "name": "Nicolas Grekas",
1543 "email": "p@tchwork.com"
1544 },
1545 {
1546 "name": "Symfony Community",
1547 "homepage": "https://symfony.com/contributors"
1548 }
1549 ],
1550 "description": "Generic abstractions related to translation",
1551 "homepage": "https://symfony.com",
1552 "keywords": [
1553 "abstractions",
1554 "contracts",
1555 "decoupling",
1556 "interfaces",
1557 "interoperability",
1558 "standards"
1559 ],
1560 "funding": [
1561 {
1562 "url": "https://symfony.com/sponsor",
1563 "type": "custom"
1564 },
1565 {
1566 "url": "https://github.com/fabpot",
1567 "type": "github"
1568 },
1569 {
1570 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
1571 "type": "tidelift"
1572 }
1573 ],
1574 "time": "2021-03-23T23:28:01+00:00"
1575 },
1576 {
1577 "name": "vlucas/phpdotenv",
1578 "version": "v5.3.0",
1579 "source": {
1580 "type": "git",
1581 "url": "https://github.com/vlucas/phpdotenv.git",
1582 "reference": "b3eac5c7ac896e52deab4a99068e3f4ab12d9e56"
1583 },
1584 "dist": {
1585 "type": "zip",
1586 "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/b3eac5c7ac896e52deab4a99068e3f4ab12d9e56",
1587 "reference": "b3eac5c7ac896e52deab4a99068e3f4ab12d9e56",
1588 "shasum": ""
1589 },
1590 "require": {
1591 "ext-pcre": "*",
1592 "graham-campbell/result-type": "^1.0.1",
1593 "php": "^7.1.3 || ^8.0",
1594 "phpoption/phpoption": "^1.7.4",
1595 "symfony/polyfill-ctype": "^1.17",
1596 "symfony/polyfill-mbstring": "^1.17",
1597 "symfony/polyfill-php80": "^1.17"
1598 },
1599 "require-dev": {
1600 "bamarni/composer-bin-plugin": "^1.4.1",
1601 "ext-filter": "*",
1602 "phpunit/phpunit": "^7.5.20 || ^8.5.14 || ^9.5.1"
1603 },
1604 "suggest": {
1605 "ext-filter": "Required to use the boolean validator."
1606 },
1607 "type": "library",
1608 "extra": {
1609 "branch-alias": {
1610 "dev-master": "5.3-dev"
1611 }
1612 },
1613 "autoload": {
1614 "psr-4": {
1615 "Dotenv\\": "src/"
1616 }
1617 },
1618 "notification-url": "https://packagist.org/downloads/",
1619 "license": [
1620 "BSD-3-Clause"
1621 ],
1622 "authors": [
1623 {
1624 "name": "Graham Campbell",
1625 "email": "graham@alt-three.com",
1626 "homepage": "https://gjcampbell.co.uk/"
1627 },
1628 {
1629 "name": "Vance Lucas",
1630 "email": "vance@vancelucas.com",
1631 "homepage": "https://vancelucas.com/"
1632 }
1633 ],
1634 "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.",
1635 "keywords": [
1636 "dotenv",
1637 "env",
1638 "environment"
1639 ],
1640 "funding": [
1641 {
1642 "url": "https://github.com/GrahamCampbell",
1643 "type": "github"
1644 },
1645 {
1646 "url": "https://tidelift.com/funding/github/packagist/vlucas/phpdotenv",
1647 "type": "tidelift"
1648 }
1649 ],
1650 "time": "2021-01-20T15:23:13+00:00"
1651 },
1652 {
1653 "name": "voku/portable-ascii",
1654 "version": "1.5.6",
1655 "source": {
1656 "type": "git",
1657 "url": "https://github.com/voku/portable-ascii.git",
1658 "reference": "80953678b19901e5165c56752d087fc11526017c"
1659 },
1660 "dist": {
1661 "type": "zip",
1662 "url": "https://api.github.com/repos/voku/portable-ascii/zipball/80953678b19901e5165c56752d087fc11526017c",
1663 "reference": "80953678b19901e5165c56752d087fc11526017c",
1664 "shasum": ""
1665 },
1666 "require": {
1667 "php": ">=7.0.0"
1668 },
1669 "require-dev": {
1670 "phpunit/phpunit": "~6.0 || ~7.0 || ~9.0"
7531671 },
7541672 "suggest": {
755 "ext-mbstring": "For best performance"
1673 "ext-intl": "Use Intl for transliterator_transliterate() support"
7561674 },
7571675 "type": "library",
758 "extra": {
759 "branch-alias": {
760 "dev-main": "1.22-dev"
761 },
762 "thanks": {
763 "name": "symfony/polyfill",
764 "url": "https://github.com/symfony/polyfill"
765 }
766 },
7671676 "autoload": {
7681677 "psr-4": {
769 "Symfony\\Polyfill\\Mbstring\\": ""
770 },
771 "files": [
772 "bootstrap.php"
773 ]
1678 "voku\\": "src/voku/"
1679 }
7741680 },
7751681 "notification-url": "https://packagist.org/downloads/",
7761682 "license": [
@@ -778,41 +1684,40 @@
7781684 ],
7791685 "authors": [
7801686 {
781 "name": "Nicolas Grekas",
782 "email": "p@tchwork.com"
783 },
784 {
785 "name": "Symfony Community",
786 "homepage": "https://symfony.com/contributors"
1687 "name": "Lars Moelleken",
1688 "homepage": "http://www.moelleken.org/"
7871689 }
7881690 ],
789 "description": "Symfony polyfill for the Mbstring extension",
790 "homepage": "https://symfony.com",
1691 "description": "Portable ASCII library - performance optimized (ascii) string functions for php.",
1692 "homepage": "https://github.com/voku/portable-ascii",
7911693 "keywords": [
792 "compatibility",
793 "mbstring",
794 "polyfill",
795 "portable",
796 "shim"
1694 "ascii",
1695 "clean",
1696 "php"
7971697 ],
798 "support": {
799 "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.22.1"
800 },
8011698 "funding": [
8021699 {
803 "url": "https://symfony.com/sponsor",
1700 "url": "https://www.paypal.me/moelleken",
8041701 "type": "custom"
8051702 },
8061703 {
807 "url": "https://github.com/fabpot",
1704 "url": "https://github.com/voku",
8081705 "type": "github"
8091706 },
8101707 {
811 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
1708 "url": "https://opencollective.com/portable-ascii",
1709 "type": "open_collective"
1710 },
1711 {
1712 "url": "https://www.patreon.com/voku",
1713 "type": "patreon"
1714 },
1715 {
1716 "url": "https://tidelift.com/funding/github/packagist/voku/portable-ascii",
8121717 "type": "tidelift"
8131718 }
8141719 ],
815 "time": "2021-01-22T09:19:47+00:00"
1720 "time": "2020-11-12T00:07:28+00:00"
8161721 }
8171722 ],
8181723 "packages-dev": [
@@ -993,10 +1898,6 @@
9931898 "parser",
9941899 "php"
9951900 ],
996 "support": {
997 "issues": "https://github.com/nikic/PHP-Parser/issues",
998 "source": "https://github.com/nikic/PHP-Parser/tree/v4.10.4"
999 },
10001901 "time": "2020-12-20T10:01:03+00:00"
10011902 },
10021903 {
@@ -1400,10 +2301,6 @@
14002301 "testing",
14012302 "xunit"
14022303 ],
1403 "support": {
1404 "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
1405 "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.6"
1406 },
14072304 "funding": [
14082305 {
14092306 "url": "https://github.com/sebastianbergmann",
@@ -1460,10 +2357,6 @@
14602357 "filesystem",
14612358 "iterator"
14622359 ],
1463 "support": {
1464 "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues",
1465 "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.5"
1466 },
14672360 "funding": [
14682361 {
14692362 "url": "https://github.com/sebastianbergmann",
@@ -1523,10 +2416,6 @@
15232416 "keywords": [
15242417 "process"
15252418 ],
1526 "support": {
1527 "issues": "https://github.com/sebastianbergmann/php-invoker/issues",
1528 "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1"
1529 },
15302419 "funding": [
15312420 {
15322421 "url": "https://github.com/sebastianbergmann",
@@ -1582,10 +2471,6 @@
15822471 "keywords": [
15832472 "template"
15842473 ],
1585 "support": {
1586 "issues": "https://github.com/sebastianbergmann/php-text-template/issues",
1587 "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4"
1588 },
15892474 "funding": [
15902475 {
15912476 "url": "https://github.com/sebastianbergmann",
@@ -1641,10 +2526,6 @@
16412526 "keywords": [
16422527 "timer"
16432528 ],
1644 "support": {
1645 "issues": "https://github.com/sebastianbergmann/php-timer/issues",
1646 "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3"
1647 },
16482529 "funding": [
16492530 {
16502531 "url": "https://github.com/sebastianbergmann",
@@ -1740,10 +2621,6 @@
17402621 "testing",
17412622 "xunit"
17422623 ],
1743 "support": {
1744 "issues": "https://github.com/sebastianbergmann/phpunit/issues",
1745 "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.4"
1746 },
17472624 "funding": [
17482625 {
17492626 "url": "https://phpunit.de/donate.html",
@@ -1800,10 +2677,6 @@
18002677 ],
18012678 "description": "Library for parsing CLI options",
18022679 "homepage": "https://github.com/sebastianbergmann/cli-parser",
1803 "support": {
1804 "issues": "https://github.com/sebastianbergmann/cli-parser/issues",
1805 "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.1"
1806 },
18072680 "funding": [
18082681 {
18092682 "url": "https://github.com/sebastianbergmann",
@@ -1856,10 +2729,6 @@
18562729 ],
18572730 "description": "Collection of value objects that represent the PHP code units",
18582731 "homepage": "https://github.com/sebastianbergmann/code-unit",
1859 "support": {
1860 "issues": "https://github.com/sebastianbergmann/code-unit/issues",
1861 "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8"
1862 },
18632732 "funding": [
18642733 {
18652734 "url": "https://github.com/sebastianbergmann",
@@ -1911,10 +2780,6 @@
19112780 ],
19122781 "description": "Looks up which function or method a line of code belongs to",
19132782 "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
1914 "support": {
1915 "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues",
1916 "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3"
1917 },
19182783 "funding": [
19192784 {
19202785 "url": "https://github.com/sebastianbergmann",
@@ -1985,10 +2850,6 @@
19852850 "compare",
19862851 "equality"
19872852 ],
1988 "support": {
1989 "issues": "https://github.com/sebastianbergmann/comparator/issues",
1990 "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.6"
1991 },
19922853 "funding": [
19932854 {
19942855 "url": "https://github.com/sebastianbergmann",
@@ -2042,10 +2903,6 @@
20422903 ],
20432904 "description": "Library for calculating the complexity of PHP code units",
20442905 "homepage": "https://github.com/sebastianbergmann/complexity",
2045 "support": {
2046 "issues": "https://github.com/sebastianbergmann/complexity/issues",
2047 "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.2"
2048 },
20492906 "funding": [
20502907 {
20512908 "url": "https://github.com/sebastianbergmann",
@@ -2108,10 +2965,6 @@
21082965 "unidiff",
21092966 "unified diff"
21102967 ],
2111 "support": {
2112 "issues": "https://github.com/sebastianbergmann/diff/issues",
2113 "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4"
2114 },
21152968 "funding": [
21162969 {
21172970 "url": "https://github.com/sebastianbergmann",
@@ -2171,10 +3024,6 @@
21713024 "environment",
21723025 "hhvm"
21733026 ],
2174 "support": {
2175 "issues": "https://github.com/sebastianbergmann/environment/issues",
2176 "source": "https://github.com/sebastianbergmann/environment/tree/5.1.3"
2177 },
21783027 "funding": [
21793028 {
21803029 "url": "https://github.com/sebastianbergmann",
@@ -2248,10 +3097,6 @@
22483097 "export",
22493098 "exporter"
22503099 ],
2251 "support": {
2252 "issues": "https://github.com/sebastianbergmann/exporter/issues",
2253 "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.3"
2254 },
22553100 "funding": [
22563101 {
22573102 "url": "https://github.com/sebastianbergmann",
@@ -2312,10 +3157,6 @@
23123157 "keywords": [
23133158 "global state"
23143159 ],
2315 "support": {
2316 "issues": "https://github.com/sebastianbergmann/global-state/issues",
2317 "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.2"
2318 },
23193160 "funding": [
23203161 {
23213162 "url": "https://github.com/sebastianbergmann",
@@ -2369,10 +3210,6 @@
23693210 ],
23703211 "description": "Library for counting the lines of code in PHP source code",
23713212 "homepage": "https://github.com/sebastianbergmann/lines-of-code",
2372 "support": {
2373 "issues": "https://github.com/sebastianbergmann/lines-of-code/issues",
2374 "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.3"
2375 },
23763213 "funding": [
23773214 {
23783215 "url": "https://github.com/sebastianbergmann",
@@ -2426,10 +3263,6 @@
24263263 ],
24273264 "description": "Traverses array structures and object graphs to enumerate all referenced objects",
24283265 "homepage": "https://github.com/sebastianbergmann/object-enumerator/",
2429 "support": {
2430 "issues": "https://github.com/sebastianbergmann/object-enumerator/issues",
2431 "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4"
2432 },
24333266 "funding": [
24343267 {
24353268 "url": "https://github.com/sebastianbergmann",
@@ -2481,10 +3314,6 @@
24813314 ],
24823315 "description": "Allows reflection of object attributes, including inherited and non-public ones",
24833316 "homepage": "https://github.com/sebastianbergmann/object-reflector/",
2484 "support": {
2485 "issues": "https://github.com/sebastianbergmann/object-reflector/issues",
2486 "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4"
2487 },
24883317 "funding": [
24893318 {
24903319 "url": "https://github.com/sebastianbergmann",
@@ -2544,10 +3373,6 @@
25443373 ],
25453374 "description": "Provides functionality to recursively process PHP variables",
25463375 "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
2547 "support": {
2548 "issues": "https://github.com/sebastianbergmann/recursion-context/issues",
2549 "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.4"
2550 },
25513376 "funding": [
25523377 {
25533378 "url": "https://github.com/sebastianbergmann",
@@ -2599,10 +3424,6 @@
25993424 ],
26003425 "description": "Provides a list of PHP built-in functions that operate on resources",
26013426 "homepage": "https://www.github.com/sebastianbergmann/resource-operations",
2602 "support": {
2603 "issues": "https://github.com/sebastianbergmann/resource-operations/issues",
2604 "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.3"
2605 },
26063427 "funding": [
26073428 {
26083429 "url": "https://github.com/sebastianbergmann",
@@ -2655,10 +3476,6 @@
26553476 ],
26563477 "description": "Collection of value objects that represent the types of the PHP type system",
26573478 "homepage": "https://github.com/sebastianbergmann/type",
2658 "support": {
2659 "issues": "https://github.com/sebastianbergmann/type/issues",
2660 "source": "https://github.com/sebastianbergmann/type/tree/2.3.1"
2661 },
26623479 "funding": [
26633480 {
26643481 "url": "https://github.com/sebastianbergmann",
@@ -2708,10 +3525,6 @@
27083525 ],
27093526 "description": "Library that helps with managing the version number of Git-hosted PHP projects",
27103527 "homepage": "https://github.com/sebastianbergmann/version",
2711 "support": {
2712 "issues": "https://github.com/sebastianbergmann/version/issues",
2713 "source": "https://github.com/sebastianbergmann/version/tree/3.0.2"
2714 },
27153528 "funding": [
27163529 {
27173530 "url": "https://github.com/sebastianbergmann",
@@ -2720,168 +3533,6 @@
27203533 ],
27213534 "time": "2020-09-28T06:39:44+00:00"
27223535 },
2723 {
2724 "name": "symfony/polyfill-ctype",
2725 "version": "v1.22.1",
2726 "source": {
2727 "type": "git",
2728 "url": "https://github.com/symfony/polyfill-ctype.git",
2729 "reference": "c6c942b1ac76c82448322025e084cadc56048b4e"
2730 },
2731 "dist": {
2732 "type": "zip",
2733 "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/c6c942b1ac76c82448322025e084cadc56048b4e",
2734 "reference": "c6c942b1ac76c82448322025e084cadc56048b4e",
2735 "shasum": ""
2736 },
2737 "require": {
2738 "php": ">=7.1"
2739 },
2740 "suggest": {
2741 "ext-ctype": "For best performance"
2742 },
2743 "type": "library",
2744 "extra": {
2745 "branch-alias": {
2746 "dev-main": "1.22-dev"
2747 },
2748 "thanks": {
2749 "name": "symfony/polyfill",
2750 "url": "https://github.com/symfony/polyfill"
2751 }
2752 },
2753 "autoload": {
2754 "psr-4": {
2755 "Symfony\\Polyfill\\Ctype\\": ""
2756 },
2757 "files": [
2758 "bootstrap.php"
2759 ]
2760 },
2761 "notification-url": "https://packagist.org/downloads/",
2762 "license": [
2763 "MIT"
2764 ],
2765 "authors": [
2766 {
2767 "name": "Gert de Pagter",
2768 "email": "BackEndTea@gmail.com"
2769 },
2770 {
2771 "name": "Symfony Community",
2772 "homepage": "https://symfony.com/contributors"
2773 }
2774 ],
2775 "description": "Symfony polyfill for ctype functions",
2776 "homepage": "https://symfony.com",
2777 "keywords": [
2778 "compatibility",
2779 "ctype",
2780 "polyfill",
2781 "portable"
2782 ],
2783 "support": {
2784 "source": "https://github.com/symfony/polyfill-ctype/tree/v1.22.1"
2785 },
2786 "funding": [
2787 {
2788 "url": "https://symfony.com/sponsor",
2789 "type": "custom"
2790 },
2791 {
2792 "url": "https://github.com/fabpot",
2793 "type": "github"
2794 },
2795 {
2796 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
2797 "type": "tidelift"
2798 }
2799 ],
2800 "time": "2021-01-07T16:49:33+00:00"
2801 },
2802 {
2803 "name": "symfony/polyfill-php80",
2804 "version": "v1.22.1",
2805 "source": {
2806 "type": "git",
2807 "url": "https://github.com/symfony/polyfill-php80.git",
2808 "reference": "dc3063ba22c2a1fd2f45ed856374d79114998f91"
2809 },
2810 "dist": {
2811 "type": "zip",
2812 "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/dc3063ba22c2a1fd2f45ed856374d79114998f91",
2813 "reference": "dc3063ba22c2a1fd2f45ed856374d79114998f91",
2814 "shasum": ""
2815 },
2816 "require": {
2817 "php": ">=7.1"
2818 },
2819 "type": "library",
2820 "extra": {
2821 "branch-alias": {
2822 "dev-main": "1.22-dev"
2823 },
2824 "thanks": {
2825 "name": "symfony/polyfill",
2826 "url": "https://github.com/symfony/polyfill"
2827 }
2828 },
2829 "autoload": {
2830 "psr-4": {
2831 "Symfony\\Polyfill\\Php80\\": ""
2832 },
2833 "files": [
2834 "bootstrap.php"
2835 ],
2836 "classmap": [
2837 "Resources/stubs"
2838 ]
2839 },
2840 "notification-url": "https://packagist.org/downloads/",
2841 "license": [
2842 "MIT"
2843 ],
2844 "authors": [
2845 {
2846 "name": "Ion Bazan",
2847 "email": "ion.bazan@gmail.com"
2848 },
2849 {
2850 "name": "Nicolas Grekas",
2851 "email": "p@tchwork.com"
2852 },
2853 {
2854 "name": "Symfony Community",
2855 "homepage": "https://symfony.com/contributors"
2856 }
2857 ],
2858 "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions",
2859 "homepage": "https://symfony.com",
2860 "keywords": [
2861 "compatibility",
2862 "polyfill",
2863 "portable",
2864 "shim"
2865 ],
2866 "support": {
2867 "source": "https://github.com/symfony/polyfill-php80/tree/v1.22.1"
2868 },
2869 "funding": [
2870 {
2871 "url": "https://symfony.com/sponsor",
2872 "type": "custom"
2873 },
2874 {
2875 "url": "https://github.com/fabpot",
2876 "type": "github"
2877 },
2878 {
2879 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
2880 "type": "tidelift"
2881 }
2882 ],
2883 "time": "2021-01-07T16:49:33+00:00"
2884 },
28853536 {
28863537 "name": "symfony/var-dumper",
28873538 "version": "v5.2.6",
@@ -2951,9 +3602,6 @@
29513602 "debug",
29523603 "dump"
29533604 ],
2954 "support": {
2955 "source": "https://github.com/symfony/var-dumper/tree/v5.2.6"
2956 },
29573605 "funding": [
29583606 {
29593607 "url": "https://symfony.com/sponsor",
@@ -3081,12 +3729,14 @@
30813729 ],
30823730 "aliases": [],
30833731 "minimum-stability": "stable",
3084 "stability-flags": [],
3732 "stability-flags": {
3733 "meema/meema-client-php": 20
3734 },
30853735 "prefer-stable": false,
30863736 "prefer-lowest": false,
30873737 "platform": {
30883738 "php": "^7.0 || ^8.0"
30893739 },
30903740 "platform-dev": [],
3091 "plugin-api-version": "2.0.0"
3741 "plugin-api-version": "1.1.0"
30923742}
src/MeemaAdapter.phpadded+261-0
Changes to src/MeemaAdapter.php
@@ -0,0 +1,261 @@
1<?php
2
3namespace Meema\Flysystem;
4
5use League\Flysystem\Adapter\AbstractAdapter;
6use League\Flysystem\Config;
7use Meema\MeemaApi\Client;
8
9class MeemaAdapter extends AbstractAdapter
10{
11 /**
12 * @var \Meema\Flysystem\Client
13 */
14 protected $client;
15
16 public function __construct()
17 {
18 $this->client = new Client(env('MEEMA_API_KEY'));
19 }
20
21 /**
22 * Write a new file.
23 *
24 * @param string $path
25 * @param string $contents
26 * @param Config $config Config object
27 *
28 * @return false|array false on failure file meta data on success
29 */
30 public function write($path, $contents, Config $config)
31 {
32 return $this->client->storage()->upload($path);
33 }
34
35 /**
36 * Write a new file using a stream.
37 *
38 * @param string $path
39 * @param resource $resource
40 * @param Config $config Config object
41 *
42 * @return array|false false on failure file meta data on success
43 */
44 public function writeStream($path, $resource, Config $config)
45 {
46 return $this->client->storage()->upload($path);
47 }
48
49 /**
50 * Update a file.
51 *
52 * @param string $path
53 * @param string $contents
54 * @param Config $config Config object
55 *
56 * @return array|false false on failure file meta data on success
57 */
58 public function update($path, $contents, Config $config)
59 {
60 return $this->client->storage()->upload($path);
61 }
62
63 /**
64 * Update a file using a stream.
65 *
66 * @param string $path
67 * @param resource $resource
68 * @param Config $config Config object
69 *
70 * @return array|false false on failure file meta data on success
71 */
72 public function updateStream($path, $resource, Config $config)
73 {
74 return $this->client->storage()->upload($path);
75 }
76
77 /**
78 * Rename a file.
79 *
80 * @param string $path
81 * @param string $newpath
82 *
83 * @return bool
84 */
85 public function rename($path, $newpath)
86 {
87 return $this->client->storage()->rename($path, $newpath);
88 }
89
90 /**
91 * Copy a file.
92 *
93 * @param string $path
94 * @param string $newpath
95 *
96 * @return bool
97 */
98 public function copy($path, $newpath)
99 {
100 return $this->client->storage()->copy($path, $newpath);
101 }
102
103 /**
104 * Delete a file.
105 *
106 * @param string $path
107 *
108 * @return bool
109 */
110 public function delete($path)
111 {
112 return $this->client->storage()->delete($path);
113 }
114
115 /**
116 * Delete a directory.
117 *
118 * @param string $dirname
119 *
120 * @return bool
121 */
122 public function deleteDir($dirname)
123 {
124 return $this->client->storage()->deleteDirectory($dirname);
125 }
126
127 /**
128 * Create a directory.
129 *
130 * @param string $dirname directory name
131 * @param Config $config
132 *
133 * @return array|false
134 */
135 public function createDir($dirname, Config $config)
136 {
137 return $this->client->storage()->makeDirectory($dirname);
138 }
139
140 /**
141 * Set the visibility for a file.
142 *
143 * @param string $path
144 * @param string $visibility
145 *
146 * @return array|false file meta data
147 */
148 public function setVisibility($path, $visibility)
149 {
150 return $this->client->storage()->setVisibility($path, $visibility);
151 }
152
153 /**
154 * Check whether a file exists.
155 *
156 * @param string $path
157 *
158 * @return bool
159 */
160 public function has($path)
161 {
162 return $this->client->storage()->has($path);
163 }
164
165 /**
166 * Read a file.
167 *
168 * @param string $path
169 *
170 * @return false|array
171 */
172 public function read($path)
173 {
174 return $this->getMetadata($path);
175 }
176
177 /**
178 * List contents of a directory.
179 *
180 * @param string $directory
181 * @param bool $recursive
182 *
183 * @return array
184 */
185 public function listContents($directory = '', $recursive = false)
186 {
187 return $this->client->storage()->listContents($directory, $recursive);
188 }
189
190 /**
191 * Read a file as a stream.
192 *
193 * @param string $path
194 *
195 * @return array|false
196 */
197 public function readStream($path)
198 {
199 return $this->getMetadata($path);
200 }
201
202 /**
203 * Get all the meta data of a file or directory.
204 *
205 * @param string $path
206 *
207 * @return false|array
208 */
209 public function getMetadata($path)
210 {
211 return $this->client->storage()->getMetadata($path);
212 }
213
214 /**
215 * Get all the meta data of a file or directory.
216 *
217 * @param string $path
218 *
219 * @return false|array
220 */
221 public function getSize($path)
222 {
223 return $this->getMetadata($path);
224 }
225
226 /**
227 * Get the mimetype of a file.
228 *
229 * @param string $path
230 *
231 * @return false|array
232 */
233 public function getMimetype($path)
234 {
235 return $this->getMetadata($path);
236 }
237
238 /**
239 * Get the timestamp of a file.
240 *
241 * @param string $path
242 *
243 * @return false|array
244 */
245 public function getTimestamp($path)
246 {
247 return $this->getMetadata($path);
248 }
249
250 /**
251 * Get the visibility of a file.
252 *
253 * @param string $path
254 *
255 * @return array|false
256 */
257 public function getVisibility($path)
258 {
259 return $this->getMetadata($path);
260 }
261}