diff --git a/.gitignore b/.gitignore index 81b9258..e17c7ea 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ composer.lock phpunit.xml vendor +.phpunit.result.cache diff --git a/README.md b/README.md index 4c97877..e877072 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,20 @@ $vimeo->upload('/home/aaron/foo.mp4'); // Want to use a facade? Vimeo::uploadImage('/videos/123/images', '/home/aaron/bar.png', true); +Vimeo::upload($video, [ + 'name' => NAME, + 'privacy.view' => [ + 'anybody', + 'contacts', + 'disable', + 'nobody', + 'password', + 'unlisted', + 'users' + ], + 'folder_uri' => 'https://vimeo.com/manage/folders_name/folder_id' +]); +Vimeo::request('/videos/'. $value, ['per_page' => 2], 'GET'); ``` [![Build Status](https://img.shields.io/travis/vimeo/laravel/master.svg?style=flat)](https://travis-ci.org/vimeo/laravel) diff --git a/composer.json b/composer.json index af61de3..cb2a237 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,7 @@ "mockery/mockery": "^1.0", "phpunit/phpunit": "^7.0|^9.5.10", "psalm/plugin-laravel": "^1.4.0|^1.1|^2.7", - "laravel/lumen-framework": "^5.7", + "laravel/lumen-framework": "^5.8|^6.0|^7.0|^8.0|^9.0|^10.0", "vimeo/psalm": "^3.17|^4.19|^5.6" }, "autoload": { diff --git a/phpunit.xml b/phpunit.xml index 5246462..06c526d 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,28 +1,30 @@ - + + + ./src + + - ./tests + ./tests - - - ./src - - diff --git a/src/Rules/VideoIdRule.php b/src/Rules/VideoIdRule.php new file mode 100644 index 0000000..938bd30 --- /dev/null +++ b/src/Rules/VideoIdRule.php @@ -0,0 +1,36 @@ +factory->make($config); diff --git a/tests/AbstractTestCase.php b/tests/AbstractTestCase.php index 95a415f..7706fd8 100644 --- a/tests/AbstractTestCase.php +++ b/tests/AbstractTestCase.php @@ -36,7 +36,7 @@ abstract class AbstractTestCase extends AbstractPackageTestCase * * @return string */ - protected function getServiceProviderClass($app) + protected function getServiceProviderClass() { return VimeoServiceProvider::class; }