Compare commits

..
5 Commits
Author SHA1 Message Date
lukas b4ec21aed5 Fixed homepage and sample app link 2026-10-27 10:10:00 +00:00
lukas 460d58a57a Updated lockfile 2026-10-27 10:01:48 +00:00
lukas 9c1e291886 Allow config options from recent SDK update 2026-10-27 09:55:12 +00:00
lukas cfe8bbc401 Upgrade to version 1.0 2026-10-27 09:43:51 +00:00
lukas cb2ffd582a Changed link to SDK 2026-10-27 09:43:37 +00:00
6 changed files with 5277 additions and 369 deletions

No files matched your search

+2
View File
@@ -1 +1,3 @@
/vendor/ /vendor/
.composer
.bash_history
+2 -2
View File
@@ -1,6 +1,6 @@
# CloudObjects Laravel SDK # CloudObjects Laravel SDK
This package installs the [CloudObjects PHP SDK](https://codeberg.org/CloudObjects/CloudObjects-PHP-SDK) and configures it for use with Laravel applications. This package installs the [CloudObjects PHP SDK](https://git.cloudobjects.net/CO/CloudObjects-PHP-SDK) and configures it for use with Laravel applications.
Install with the following commands: Install with the following commands:
@@ -9,4 +9,4 @@ composer require cloudobjects/laravel-sdk
artisan vendor:publish --provider="CloudObjects\SDK\Laravel\CloudObjectsServiceProvider" artisan vendor:publish --provider="CloudObjects\SDK\Laravel\CloudObjectsServiceProvider"
``` ```
We have also released [the source code to a demo application](https://codeberg.org/CloudObjects/CO-Laravel-Demo-App) that shows the capabilities of this package. We have also released [the source code to a demo application](https://git.cloudobjects.net/CO/CO-Laravel-Demo-App) that shows the capabilities of this package.
+2 -2
View File
@@ -2,11 +2,11 @@
"name": "cloudobjects/laravel-sdk", "name": "cloudobjects/laravel-sdk",
"description" : "CloudObjects SDK for Laravel Applications.", "description" : "CloudObjects SDK for Laravel Applications.",
"keywords": ["cloudobjects", "sdk", "laravel"], "keywords": ["cloudobjects", "sdk", "laravel"],
"homepage": "https://codeberg.org/CloudObjects/CloudObjects-Laravel-SDK", "homepage": "https://git.cloudobjects.net/CO/CloudObjects-Laravel-SDK",
"type": "library", "type": "library",
"license": "MPL-2.0", "license": "MPL-2.0",
"require": { "require": {
"cloudobjects/sdk" : ">=0.9", "cloudobjects/sdk" : ">=1.0",
"laravel/framework": "*" "laravel/framework": "*"
}, },
"autoload": { "autoload": {
Generated
+5243 -361
View File
File diff suppressed because it is too large. Load diff
+14 -1
View File
@@ -9,9 +9,22 @@ return [
| |
*/ */
'core' => [ 'core' => [
// Add credentials for authentication to CloudObjects:
'auth_ns' => env('CO_NAMESPACE'), 'auth_ns' => env('CO_NAMESPACE'),
'auth_secret' => env('CO_CORE_AUTH_SECRET'), 'auth_secret' => env('CO_CORE_AUTH_SECRET'),
// The following options can usually be left at their defaults:
'cache_prefix' => env('CO_CACHE_PREFIX', 'clobj:'),
'cache_ttl' => env('CO_CACHE_TTL', 60),
'static_object_directory' => env('CO_STATIC_OBJECT_DIRECTORY'),
'api_base_url' => env('CO_API_BASE_URL'),
'timeout' => env('CO_TIMEOUT', 20),
'connect_timeout' => env('CO_CONNECT_TIMEOUT', 5),
'fallback_store_directory' => env('CO_FALLBACK_STORE_DIRECTORY'),
'fallback_store_scope' => env('CO_FALLBACK_STORE_SCOPE'),
'permanent_store_directory' => env('CO_PERMANENT_STORE_DIRECTORY'),
'permanent_store_scope' => env('CO_PERMANENT_STORE_SCOPE'),
], ],
]; ];
+14 -3
View File
@@ -21,9 +21,20 @@ class CloudObjectsServiceProvider extends ServiceProvider {
public function register() { public function register() {
$this->app->bind(ObjectRetriever::class, function() { $this->app->bind(ObjectRetriever::class, function() {
$config = Arr::only($this->app['config']->get('cloudobjects.core'), $config = Arr::only($this->app['config']->get('cloudobjects.core'), [
[ 'auth_ns', 'auth_secret' ] 'auth_ns',
); 'auth_secret',
'cache_prefix',
'cache_ttl',
'static_object_directory',
'api_base_url',
'timeout',
'connect_timeout',
'fallback_store_directory',
'fallback_store_scope',
'permanent_store_directory',
'permanent_store_scope',
]);
$config['cache_storage'] = $this->app['cache.store']; $config['cache_storage'] = $this->app['cache.store'];
$retriever = new ObjectRetriever($config); $retriever = new ObjectRetriever($config);
$retriever->setLogger($this->app['log']); $retriever->setLogger($this->app['log']);