Skip to content

Commit b6cd4ac

Browse files
committed
Merge tag 'v1.0.0-alpha.1' into develop
Initial alpha release
2 parents 764fbd8 + 223e43c commit b6cd4ac

File tree

110 files changed

+240
-166
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+240
-166
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Change Log
2+
3+
All notable changes to this project will be documented in this file. This project adheres to
4+
[Semantic Versioning](http://semver.org/) and [this changelog format](http://keepachangelog.com/).
5+
6+
## [1.0.0-alpha.1] - 2021-01-25
7+
8+
Initial release.

README.md

+17-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
1-
# laravel-json-api/laravel
1+
# JSON:API for Web Artisans
22

3-
## Status
3+
Implement feature-rich [JSON:API](https://jsonapi.org) compliant APIs in your
4+
[Laravel](https://laravel.com) applications. Build your next standards-compliant API today.
45

5-
This package is in development.
6+
## Documentation
7+
8+
See our website, [laraveljsonapi.io](https://laraveljsonapi.io)
9+
10+
## Installation
11+
12+
Install using [Composer](https://getcomposer.org)
13+
14+
```bash
15+
composer require laravel-json-api/laravel
16+
```
17+
18+
See our documentation for further installation instructions.
619

720
## License
821

9-
Laravel JSON API is open-sourced software licensed under the [Apache 2.0 License](./LICENSE).
22+
Laravel JSON:API is open-sourced software licensed under the [Apache 2.0 License](./LICENSE).

composer.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "laravel-json-api/laravel",
3-
"description": "JSON API for Laravel applications.",
3+
"description": "JSON:API for Laravel applications.",
44
"keywords": [
55
"jsonapi.org",
66
"json-api",
@@ -25,16 +25,16 @@
2525
"require": {
2626
"php": "^7.4|^8.0",
2727
"ext-json": "*",
28-
"laravel-json-api/core": "^1.0",
29-
"laravel-json-api/eloquent": "^1.0",
30-
"laravel-json-api/encoder-neomerx": "^1.0",
31-
"laravel-json-api/exceptions": "^1.0",
32-
"laravel-json-api/spec": "^1.0",
33-
"laravel-json-api/validation": "^1.0",
28+
"laravel-json-api/core": "^1.0.0-alpha.1",
29+
"laravel-json-api/eloquent": "^1.0.0-alpha.1",
30+
"laravel-json-api/encoder-neomerx": "^1.0.0-alpha.1",
31+
"laravel-json-api/exceptions": "^1.0.0-alpha.1",
32+
"laravel-json-api/spec": "^1.0.0-alpha.1",
33+
"laravel-json-api/validation": "^1.0.0-alpha.1",
3434
"laravel/framework": "^8.0"
3535
},
3636
"require-dev": {
37-
"laravel-json-api/testing": "^1.0",
37+
"laravel-json-api/testing": "^1.0@alpha",
3838
"orchestra/testbench": "^6.9",
3939
"phpunit/phpunit": "^9.5"
4040
},
@@ -65,7 +65,7 @@
6565
}
6666
}
6767
},
68-
"minimum-stability": "dev",
68+
"minimum-stability": "stable",
6969
"prefer-stable": true,
7070
"config": {
7171
"sort-packages": true

src/Console/Concerns/ResolvesStub.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2020 Cloud Creativity Limited
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/Console/GeneratorCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2020 Cloud Creativity Limited
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/Console/MakeController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2020 Cloud Creativity Limited
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/Console/MakeFilter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2020 Cloud Creativity Limited
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/Console/MakeQuery.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2020 Cloud Creativity Limited
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/Console/MakeRequest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2020 Cloud Creativity Limited
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/Console/MakeRequests.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2020 Cloud Creativity Limited
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/Console/MakeResource.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2020 Cloud Creativity Limited
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/Console/MakeSchema.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2020 Cloud Creativity Limited
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/Console/MakeServer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2020 Cloud Creativity Limited
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/Console/StubPublish.php

+15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
<?php
2+
/*
3+
* Copyright 2021 Cloud Creativity Limited
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
217

318
namespace LaravelJsonApi\Laravel\Console;
419

src/Facades/JsonApiRoute.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2020 Cloud Creativity Limited
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/Http/Controllers/Actions/AttachRelationship.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2020 Cloud Creativity Limited
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/Http/Controllers/Actions/Destroy.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
2-
/**
3-
* Copyright 2020 Cloud Creativity Limited
2+
/*
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/Http/Controllers/Actions/DetachRelationship.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2020 Cloud Creativity Limited
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/Http/Controllers/Actions/FetchMany.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2020 Cloud Creativity Limited
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/Http/Controllers/Actions/FetchOne.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2020 Cloud Creativity Limited
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/Http/Controllers/Actions/FetchRelated.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2020 Cloud Creativity Limited
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/Http/Controllers/Actions/FetchRelationship.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2020 Cloud Creativity Limited
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/Http/Controllers/Actions/Store.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2020 Cloud Creativity Limited
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/Http/Controllers/Actions/Update.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2020 Cloud Creativity Limited
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/Http/Controllers/Actions/UpdateRelationship.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2020 Cloud Creativity Limited
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/Http/Controllers/JsonApiController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2020 Cloud Creativity Limited
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/Http/Middleware/BootJsonApi.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
2-
/**
3-
* Copyright 2020 Cloud Creativity Limited
2+
/*
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/Http/Requests/AnonymousCollectionQuery.php

+15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
<?php
2+
/*
3+
* Copyright 2021 Cloud Creativity Limited
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
217

318
namespace LaravelJsonApi\Laravel\Http\Requests;
419

src/Http/Requests/AnonymousQuery.php

+15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
<?php
2+
/*
3+
* Copyright 2021 Cloud Creativity Limited
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
217

318
namespace LaravelJsonApi\Laravel\Http\Requests;
419

src/Http/Requests/FormRequest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
2-
/**
3-
* Copyright 2020 Cloud Creativity Limited
2+
/*
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/Http/Requests/RequestResolver.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
2-
/**
3-
* Copyright 2020 Cloud Creativity Limited
2+
/*
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/Http/Requests/ResourceQuery.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
2-
/**
3-
* Copyright 2020 Cloud Creativity Limited
2+
/*
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/Http/Requests/ResourceRequest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
2-
/**
3-
* Copyright 2020 Cloud Creativity Limited
2+
/*
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/LaravelJsonApi.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2020 Cloud Creativity Limited
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.
@@ -19,8 +19,8 @@
1919

2020
namespace LaravelJsonApi\Laravel;
2121

22-
use LaravelJsonApi\Core\Auth\AuthorizerResolver;
2322
use Illuminate\Support\Arr;
23+
use LaravelJsonApi\Core\Auth\AuthorizerResolver;
2424

2525
final class LaravelJsonApi
2626
{

src/Routing/PendingRelationshipRegistration.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2020 Cloud Creativity Limited
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

src/Routing/PendingResourceRegistration.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* Copyright 2020 Cloud Creativity Limited
3+
* Copyright 2021 Cloud Creativity Limited
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)