Skip to content

Commit 6eb42a4

Browse files
committed
Change organisation
1 parent 029d325 commit 6eb42a4

38 files changed

+142
-143
lines changed

.github/workflows/validate.yml renamed to .github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: PHP Composer
1+
name: test
22

33
on:
44
push:

LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
MIT License
22

3+
Copyright (c) 2020 Coding Socks
34
Copyright (c) 2019 LaraCrafts
45

56
Permission is hereby granted, free of charge, to any person obtaining a copy

README.md

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
Chunk Uploader Package For Laravel
44

5-
[![](https://travis-ci.org/LaraCrafts/laravel-chunk-uploader.svg?branch=master)](https://travis-ci.org/LaraCrafts/laravel-chunk-uploader)
6-
[![](https://poser.pugx.org/laracrafts/laravel-chunk-uploader/downloads)](https://packagist.org/packages/laracrafts/laravel-chunk-uploader)
7-
[![](https://poser.pugx.org/laracrafts/laravel-chunk-uploader/version)](https://packagist.org/packages/laracrafts/laravel-chunk-uploader)
8-
[![](https://scrutinizer-ci.com/g/LaraCrafts/laravel-chunk-uploader/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/LaraCrafts/laravel-chunk-uploader/)
9-
[![](https://poser.pugx.org/laracrafts/laravel-chunk-uploader/license)](https://packagist.org/packages/laracrafts/laravel-chunk-uploader)
5+
[![Github Actions Badge](https://github.com/coding-socks/laravel-chunk-uploader/workflows/test/badge.svg)](https://github.com/coding-socks/laravel-chunk-uploader/actions?query=workflow%3A"test")
6+
[![Downloads Badge](https://poser.pugx.org/coding-socks/laravel-chunk-uploader/downloads)](https://packagist.org/packages/coding-socks/laravel-chunk-uploader)
7+
[![Version Badge](https://poser.pugx.org/coding-socks/laravel-chunk-uploader/version)](https://packagist.org/packages/coding-socks/laravel-chunk-uploader)
8+
[![Coverage Badge](https://scrutinizer-ci.com/g/coding-socks/laravel-chunk-uploader/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/coding-socks/laravel-chunk-uploader/)
9+
[![License Badge](https://poser.pugx.org/coding-socks/laravel-chunk-uploader/license)](https://packagist.org/packages/coding-socks/laravel-chunk-uploader)
1010

1111
This package helps integrate a Laravel application with chunk uploader libraries eg.
1212
[DropzoneJS](https://www.dropzonejs.com/) and
@@ -47,7 +47,7 @@ project at the moment is [tus](https://tus.io/).
4747
You can easily install this package using Composer, by running the following command:
4848

4949
```bash
50-
composer require laracrafts/laravel-chunk-uploader
50+
composer require coding-socks/laravel-chunk-uploader
5151
```
5252

5353
### Requirements
@@ -67,7 +67,7 @@ Route::any('/my-route', 'MyController@myFunction');
6767
- Using dependency injection
6868
```php
6969
use Illuminate\Http\Request;
70-
use LaraCrafts\ChunkUploader\UploadHandler;
70+
use CodingSocks\ChunkUploader\UploadHandler;
7171

7272
class MyController extends Controller
7373
{
@@ -80,7 +80,7 @@ class MyController extends Controller
8080
- Resolving from the app container
8181
```php
8282
use Illuminate\Http\Request;
83-
use LaraCrafts\ChunkUploader\UploadHandler;
83+
use CodingSocks\ChunkUploader\UploadHandler;
8484

8585
class MyController extends Controller
8686
{
@@ -104,7 +104,7 @@ library can be differ very much. Also, when possible the library gives the oppor
104104

105105
### Events
106106

107-
Once a file upload is finished a `\LaraCrafts\ChunkUploader\Event\FileUploaded` is triggered. This event contains
107+
Once a file upload is finished a `\CodingSocks\ChunkUploader\Event\FileUploaded` is triggered. This event contains
108108
the disk and the path of the uploaded file.
109109
[Registering Events & Listeners from Laravel](https://laravel.com/docs/5.8/events#registering-events-and-listeners)
110110

@@ -133,8 +133,8 @@ app()->make(UploadManager::class)->extend('my_driver', function () {
133133
});
134134
```
135135

136-
If you are adding a driver you need to extend the `\LaraCrafts\ChunkUploader\Driver\UploadDriver` abstract class, for
137-
which you can use the shipped drivers (e.g. `\LaraCrafts\ChunkUploader\Driver\BlueimpUploadDriver`) as an example as to
136+
If you are adding a driver you need to extend the `\CodingSocks\ChunkUploader\Driver\UploadDriver` abstract class, for
137+
which you can use the shipped drivers (e.g. `\CodingSocks\ChunkUploader\Driver\BlueimpUploadDriver`) as an example as to
138138
how.
139139

140140
If you wrote a custom driver that others might find useful, please consider adding it to the package via a pull request.
@@ -193,11 +193,9 @@ information about contribution guidelines.
193193

194194
## License
195195

196-
**Copyright (c) 2019 LaraCrafts.**
197-
198196
This product is licensed under the MIT license, please refer to the [License file][license] for more information.
199197

200-
[contributing]: https://github.com/LaraCrafts/laravel-chunk-uploader/blob/master/CONTRIBUTING.md
201-
[license]: https://github.com/LaraCrafts/laravel-chunk-uploader/blob/master/LICENSE
198+
[contributing]: CONTRIBUTING.md
199+
[license]: LICENSE
202200
[php-max-file-uploads]: https://www.php.net/manual/en/ini.core.php#ini.max-file-uploads
203201
[php-upload-max-filesize]: https://www.php.net/manual/en/ini.core.php#ini.upload-max-filesize

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
2-
"name": "laracrafts/laravel-chunk-uploader",
3-
"description": "",
2+
"name": "coding-socks/laravel-chunk-uploader",
3+
"description": "This package helps integrate a Laravel application with chunk uploader libraries eg. DropzoneJS and Resumable.js",
44
"type": "library",
55
"license": "MIT",
66
"authors": [
77
{
88
"name": "László Görög",
9-
"email": "contact@nergal.xyz"
9+
"homepage": "https://github.com/axlon"
1010
},
1111
{
1212
"name": "Choraimy Kroonstuiver",
13-
"email": "choraimy@live.nl"
13+
"homepage": "https://github.com/nerg4l"
1414
},
1515
{
1616
"name": "Raed Yak",
17-
"email": "contact.raedyak@gmail.com"
17+
"homepage": "https://github.com/yak0d3"
1818
}
1919
],
2020
"require": {
@@ -29,12 +29,12 @@
2929
},
3030
"autoload": {
3131
"psr-4": {
32-
"LaraCrafts\\ChunkUploader\\": "src/"
32+
"CodingSocks\\ChunkUploader\\": "src/"
3333
}
3434
},
3535
"autoload-dev": {
3636
"psr-4": {
37-
"LaraCrafts\\ChunkUploader\\Tests\\": "tests/"
37+
"CodingSocks\\ChunkUploader\\Tests\\": "tests/"
3838
}
3939
},
4040
"config": {
@@ -46,7 +46,7 @@
4646
},
4747
"laravel": {
4848
"providers": [
49-
"LaraCrafts\\ChunkUploader\\ChunkUploaderServiceProvider"
49+
"CodingSocks\\ChunkUploader\\ChunkUploaderServiceProvider"
5050
]
5151
}
5252
}

src/ChunkUploaderServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace LaraCrafts\ChunkUploader;
3+
namespace CodingSocks\ChunkUploader;
44

55
use Illuminate\Support\ServiceProvider;
66

src/Driver/BlueimpUploadDriver.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace LaraCrafts\ChunkUploader\Driver;
3+
namespace CodingSocks\ChunkUploader\Driver;
44

55
use Closure;
66
use Illuminate\Http\JsonResponse;
@@ -9,11 +9,11 @@
99
use Illuminate\Support\Facades\Storage;
1010
use Illuminate\Support\Str;
1111
use InvalidArgumentException;
12-
use LaraCrafts\ChunkUploader\Helper\ChunkHelpers;
13-
use LaraCrafts\ChunkUploader\Identifier\Identifier;
14-
use LaraCrafts\ChunkUploader\Range\ContentRange;
15-
use LaraCrafts\ChunkUploader\Response\PercentageJsonResponse;
16-
use LaraCrafts\ChunkUploader\StorageConfig;
12+
use CodingSocks\ChunkUploader\Helper\ChunkHelpers;
13+
use CodingSocks\ChunkUploader\Identifier\Identifier;
14+
use CodingSocks\ChunkUploader\Range\ContentRange;
15+
use CodingSocks\ChunkUploader\Response\PercentageJsonResponse;
16+
use CodingSocks\ChunkUploader\StorageConfig;
1717
use Symfony\Component\HttpFoundation\Response;
1818
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
1919
use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException;
@@ -28,15 +28,15 @@ class BlueimpUploadDriver extends UploadDriver
2828
private $fileParam;
2929

3030
/**
31-
* @var \LaraCrafts\ChunkUploader\Identifier\Identifier
31+
* @var \CodingSocks\ChunkUploader\Identifier\Identifier
3232
*/
3333
private $identifier;
3434

3535
/**
3636
* BlueimpUploadDriver constructor.
3737
*
3838
* @param array $config
39-
* @param \LaraCrafts\ChunkUploader\Identifier\Identifier $identifier
39+
* @param \CodingSocks\ChunkUploader\Identifier\Identifier $identifier
4040
*/
4141
public function __construct($config, Identifier $identifier)
4242
{
@@ -92,7 +92,7 @@ public function info(): Response
9292

9393
/**
9494
* @param \Illuminate\Http\Request $request
95-
* @param \LaraCrafts\ChunkUploader\StorageConfig $config
95+
* @param \CodingSocks\ChunkUploader\StorageConfig $config
9696
*
9797
* @return \Symfony\Component\HttpFoundation\Response
9898
*/
@@ -127,7 +127,7 @@ public function download(Request $request, StorageConfig $config): Response
127127

128128
/**
129129
* @param \Illuminate\Http\Request $request
130-
* @param \LaraCrafts\ChunkUploader\StorageConfig $config
130+
* @param \CodingSocks\ChunkUploader\StorageConfig $config
131131
* @param \Closure|null $fileUploaded
132132
*
133133
* @return \Symfony\Component\HttpFoundation\Response
@@ -171,7 +171,7 @@ public function save(Request $request, StorageConfig $config, Closure $fileUploa
171171

172172
/**
173173
* @param \Illuminate\Http\Request $request
174-
* @param \LaraCrafts\ChunkUploader\StorageConfig $config
174+
* @param \CodingSocks\ChunkUploader\StorageConfig $config
175175
*
176176
* @return \Symfony\Component\HttpFoundation\Response
177177
*/

src/Driver/DropzoneUploadDriver.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<?php
22

3-
namespace LaraCrafts\ChunkUploader\Driver;
3+
namespace CodingSocks\ChunkUploader\Driver;
44

55
use Closure;
66
use Illuminate\Http\Request;
77
use Illuminate\Http\UploadedFile;
88
use InvalidArgumentException;
9-
use LaraCrafts\ChunkUploader\Helper\ChunkHelpers;
10-
use LaraCrafts\ChunkUploader\Range\ZeroBasedRequestBodyRange;
11-
use LaraCrafts\ChunkUploader\Response\PercentageJsonResponse;
12-
use LaraCrafts\ChunkUploader\StorageConfig;
9+
use CodingSocks\ChunkUploader\Helper\ChunkHelpers;
10+
use CodingSocks\ChunkUploader\Range\ZeroBasedRequestBodyRange;
11+
use CodingSocks\ChunkUploader\Response\PercentageJsonResponse;
12+
use CodingSocks\ChunkUploader\StorageConfig;
1313
use Symfony\Component\HttpFoundation\Response;
1414
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
1515
use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException;
@@ -49,7 +49,7 @@ public function handle(Request $request, StorageConfig $config, Closure $fileUpl
4949

5050
/**
5151
* @param \Illuminate\Http\Request $request
52-
* @param \LaraCrafts\ChunkUploader\StorageConfig $config
52+
* @param \CodingSocks\ChunkUploader\StorageConfig $config
5353
* @param \Closure|null $fileUploaded
5454
*
5555
* @return \Symfony\Component\HttpFoundation\Response
@@ -101,7 +101,7 @@ private function validateChunkRequest(Request $request): void
101101

102102
/**
103103
* @param \Illuminate\Http\UploadedFile $file
104-
* @param \LaraCrafts\ChunkUploader\StorageConfig $config
104+
* @param \CodingSocks\ChunkUploader\StorageConfig $config
105105
* @param \Closure|null $fileUploaded
106106
*
107107
* @return \Symfony\Component\HttpFoundation\Response
@@ -120,7 +120,7 @@ private function saveMonolith(UploadedFile $file, StorageConfig $config, Closure
120120
/**
121121
* @param \Illuminate\Http\UploadedFile $file
122122
* @param \Illuminate\Http\Request $request
123-
* @param \LaraCrafts\ChunkUploader\StorageConfig $config
123+
* @param \CodingSocks\ChunkUploader\StorageConfig $config
124124
* @param \Closure|null $fileUploaded
125125
*
126126
* @return \Symfony\Component\HttpFoundation\Response

src/Driver/MonolithUploadDriver.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22

3-
namespace LaraCrafts\ChunkUploader\Driver;
3+
namespace CodingSocks\ChunkUploader\Driver;
44

55
use Closure;
66
use Illuminate\Http\Request;
77
use Illuminate\Support\Facades\Storage;
8-
use LaraCrafts\ChunkUploader\Response\PercentageJsonResponse;
9-
use LaraCrafts\ChunkUploader\StorageConfig;
8+
use CodingSocks\ChunkUploader\Response\PercentageJsonResponse;
9+
use CodingSocks\ChunkUploader\StorageConfig;
1010
use Symfony\Component\HttpFoundation\Response;
1111
use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException;
1212

@@ -53,7 +53,7 @@ public function handle(Request $request, StorageConfig $config, Closure $fileUpl
5353

5454
/**
5555
* @param \Illuminate\Http\Request $request
56-
* @param \LaraCrafts\ChunkUploader\StorageConfig $config
56+
* @param \CodingSocks\ChunkUploader\StorageConfig $config
5757
* @param \Closure|null $fileUploaded
5858
*
5959
* @return \Symfony\Component\HttpFoundation\Response
@@ -75,7 +75,7 @@ public function save(Request $request, StorageConfig $config, Closure $fileUploa
7575

7676
/**
7777
* @param \Illuminate\Http\Request $request
78-
* @param \LaraCrafts\ChunkUploader\StorageConfig $config
78+
* @param \CodingSocks\ChunkUploader\StorageConfig $config
7979
*
8080
* @return \Symfony\Component\HttpFoundation\Response
8181
*/
@@ -88,7 +88,7 @@ public function download(Request $request, StorageConfig $config): Response
8888

8989
/**
9090
* @param \Illuminate\Http\Request $request
91-
* @param \LaraCrafts\ChunkUploader\StorageConfig $config
91+
* @param \CodingSocks\ChunkUploader\StorageConfig $config
9292
*
9393
* @return \Symfony\Component\HttpFoundation\Response
9494
*/

src/Driver/ResumableJsUploadDriver.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?php
22

3-
namespace LaraCrafts\ChunkUploader\Driver;
3+
namespace CodingSocks\ChunkUploader\Driver;
44

55
use Closure;
66
use Illuminate\Http\JsonResponse;
77
use Illuminate\Http\Request;
88
use Illuminate\Http\UploadedFile;
99
use InvalidArgumentException;
10-
use LaraCrafts\ChunkUploader\Helper\ChunkHelpers;
11-
use LaraCrafts\ChunkUploader\Range\OneBasedRequestBodyRange;
12-
use LaraCrafts\ChunkUploader\Response\PercentageJsonResponse;
13-
use LaraCrafts\ChunkUploader\StorageConfig;
10+
use CodingSocks\ChunkUploader\Helper\ChunkHelpers;
11+
use CodingSocks\ChunkUploader\Range\OneBasedRequestBodyRange;
12+
use CodingSocks\ChunkUploader\Response\PercentageJsonResponse;
13+
use CodingSocks\ChunkUploader\StorageConfig;
1414
use Symfony\Component\HttpFoundation\Response;
1515
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
1616
use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException;
@@ -82,7 +82,7 @@ public function handle(Request $request, StorageConfig $config, Closure $fileUpl
8282

8383
/**
8484
* @param \Illuminate\Http\Request $request
85-
* @param \LaraCrafts\ChunkUploader\StorageConfig $config
85+
* @param \CodingSocks\ChunkUploader\StorageConfig $config
8686
*
8787
* @return \Symfony\Component\HttpFoundation\Response
8888
*/
@@ -114,7 +114,7 @@ public function resume(Request $request, StorageConfig $config): Response
114114

115115
/**
116116
* @param \Illuminate\Http\Request $request
117-
* @param \LaraCrafts\ChunkUploader\StorageConfig $config
117+
* @param \CodingSocks\ChunkUploader\StorageConfig $config
118118
* @param \Closure|null $fileUploaded
119119
*
120120
* @return \Symfony\Component\HttpFoundation\Response
@@ -147,7 +147,7 @@ private function validateChunkRequest(Request $request): void
147147
/**
148148
* @param \Illuminate\Http\UploadedFile $file
149149
* @param \Illuminate\Http\Request $request
150-
* @param \LaraCrafts\ChunkUploader\StorageConfig $config
150+
* @param \CodingSocks\ChunkUploader\StorageConfig $config
151151
* @param \Closure|null $fileUploaded
152152
*
153153
* @return \Symfony\Component\HttpFoundation\Response

0 commit comments

Comments
 (0)