Skip to content

Commit 6ed04af

Browse files
authored
Merge pull request #36 from dystcz/feat/update-laravel-json-api-versions
Feat: Update laravel json api versions
2 parents 5edb879 + 181bbf5 commit 6ed04af

File tree

4 files changed

+210
-207
lines changed

4 files changed

+210
-207
lines changed

composer.json

Lines changed: 133 additions & 133 deletions
Original file line numberDiff line numberDiff line change
@@ -1,136 +1,136 @@
11
{
2-
"name": "dystcz/dystore",
3-
"autoload": {
4-
"psr-4": {
5-
"Dystore\\Api\\": "packages/api/src",
6-
"Dystore\\Api\\Database\\Factories\\": "packages/api/database/factories",
7-
"Dystore\\Api\\Database\\State\\": "packages/api/database/state",
8-
"Dystore\\Newsletter\\": "packages/newsletter/src",
9-
"Dystore\\Newsletter\\Database\\Factories\\": "packages/newsletter/database/factories",
10-
"Dystore\\Newsletter\\Database\\State\\": "packages/newsletter/database/state",
11-
"Dystore\\ProductNotifications\\": "packages/product-notifications/src",
12-
"Dystore\\ProductNotifications\\Database\\Factories\\": "packages/product-notifications/database/factories",
13-
"Dystore\\ProductNotifications\\Database\\State\\": "packages/product-notifications/database/state",
14-
"Dystore\\ProductViews\\": "packages/product-views/src",
15-
"Dystore\\ProductViews\\Database\\Factories\\": "packages/product-views/database/factories",
16-
"Dystore\\ProductViews\\Database\\State\\": "packages/product-views/database/state",
17-
"Dystore\\Reviews\\": "packages/reviews/src",
18-
"Dystore\\Reviews\\Database\\Factories\\": "packages/reviews/database/factories",
19-
"Dystore\\Reviews\\Database\\State\\": "packages/reviews/database/state",
20-
"Dystore\\Stripe\\": "packages/stripe/src",
21-
"Dystore\\Stripe\\Database\\Factories\\": "packages/stripe/database/factories",
22-
"Dystore\\Stripe\\Database\\State\\": "packages/stripe/database/state"
23-
},
24-
"files": [
25-
"packages/api/autoload.php",
26-
"packages/newsletter/autoload.php",
27-
"packages/product-notifications/autoload.php",
28-
"packages/product-views/autoload.php",
29-
"packages/reviews/autoload.php",
30-
"packages/stripe/autoload.php"
31-
]
2+
"name": "dystcz/dystore",
3+
"autoload": {
4+
"psr-4": {
5+
"Dystore\\Api\\": "packages/api/src",
6+
"Dystore\\Api\\Database\\Factories\\": "packages/api/database/factories",
7+
"Dystore\\Api\\Database\\State\\": "packages/api/database/state",
8+
"Dystore\\Newsletter\\": "packages/newsletter/src",
9+
"Dystore\\Newsletter\\Database\\Factories\\": "packages/newsletter/database/factories",
10+
"Dystore\\Newsletter\\Database\\State\\": "packages/newsletter/database/state",
11+
"Dystore\\ProductNotifications\\": "packages/product-notifications/src",
12+
"Dystore\\ProductNotifications\\Database\\Factories\\": "packages/product-notifications/database/factories",
13+
"Dystore\\ProductNotifications\\Database\\State\\": "packages/product-notifications/database/state",
14+
"Dystore\\ProductViews\\": "packages/product-views/src",
15+
"Dystore\\ProductViews\\Database\\Factories\\": "packages/product-views/database/factories",
16+
"Dystore\\ProductViews\\Database\\State\\": "packages/product-views/database/state",
17+
"Dystore\\Reviews\\": "packages/reviews/src",
18+
"Dystore\\Reviews\\Database\\Factories\\": "packages/reviews/database/factories",
19+
"Dystore\\Reviews\\Database\\State\\": "packages/reviews/database/state",
20+
"Dystore\\Stripe\\": "packages/stripe/src",
21+
"Dystore\\Stripe\\Database\\Factories\\": "packages/stripe/database/factories",
22+
"Dystore\\Stripe\\Database\\State\\": "packages/stripe/database/state"
3223
},
33-
"minimum-stability": "dev",
34-
"replace": {
35-
"dystcz/dystore-api": "1.0.1",
36-
"dystcz/dystore-newsletter": "1.0.1",
37-
"dystcz/dystore-product-notifications": "1.0.1",
38-
"dystcz/dystore-product-views": "1.0.1",
39-
"dystcz/dystore-reviews": "1.0.1",
40-
"dystcz/dystore-stripe": "1.0.1"
41-
},
42-
"config": {
43-
"sort-packages": true,
44-
"allow-plugins": {
45-
"pestphp/pest-plugin": true,
46-
"php-http/discovery": true
47-
}
48-
},
49-
"scripts": {
50-
"post-autoload-dump": "@composer run prepare",
51-
"artisan": "vendor/bin/testbench",
52-
"clear": "vendor/bin/testbench package:purge --ansi",
53-
"prepare": "vendor/bin/testbench package:discover --ansi",
54-
"package-test": "vendor/bin/testbench package:test",
55-
"test": "vendor/bin/pest",
56-
"test-hashids": "vendor/bin/pest -c phpunit.hashids.xml",
57-
"test-coverage": "vendor/bin/pest --coverage",
58-
"analyse": "vendor/bin/phpstan analyse",
59-
"format": "vendor/bin/pint"
60-
},
61-
"extra": {
62-
"laravel": {
63-
"providers": [
64-
"Dystore\\Api\\ApiHashidsServiceProvider",
65-
"Dystore\\Api\\ApiServiceProvider",
66-
"Dystore\\Api\\JsonApiServiceProvider",
67-
"Dystore\\Newsletter\\NewsletterServiceProvider",
68-
"Dystore\\ProductNotifications\\ProductNotificationsServiceProvider",
69-
"Dystore\\ProductViews\\ProductViewsServiceProvider",
70-
"Dystore\\Reviews\\ReviewsServiceProvider",
71-
"Dystore\\Stripe\\StripeServiceProvider"
72-
]
73-
}
74-
},
75-
"autoload-dev": {
76-
"psr-4": {
77-
"Dystore\\Tests\\Api\\": "tests/api",
78-
"Dystore\\Tests\\Newsletter\\": "tests/newsletter",
79-
"Dystore\\Tests\\ProductNotifications\\": "tests/product-notifications",
80-
"Dystore\\Tests\\ProductViews\\": "tests/product-views",
81-
"Dystore\\Tests\\Reviews\\": "tests/reviews",
82-
"Dystore\\Tests\\Stripe\\": "tests/stripe"
83-
}
84-
},
85-
"require-dev": {
86-
"barryvdh/laravel-ide-helper": "^3.0",
87-
"drewm/mailchimp-api": "^2.5",
88-
"getbrevo/brevo-php": "^1.0",
89-
"larastan/larastan": "^3.0",
90-
"laravel-json-api/testing": "^3.0",
91-
"laravel/pint": "^1.7",
92-
"mockery/mockery": "^1.5",
93-
"orchestra/testbench": "^9.0",
94-
"pestphp/pest": "^2.0",
95-
"pestphp/pest-plugin-arch": "^2.0",
96-
"pestphp/pest-plugin-faker": "^2.0",
97-
"pestphp/pest-plugin-laravel": "^2.0",
98-
"spatie/laravel-ray": "^1.32",
99-
"spatie/mailcoach-sdk-php": "^1.1",
100-
"symplify/monorepo-builder": "^11.2"
101-
},
102-
"description": "Collection of ecommerce packages built on top of Lunar and Laravel JSON:API.",
103-
"require": {
104-
"php": "^8.2",
105-
"ext-redis": "*",
106-
"h4kuna/ares": "^3.0",
107-
"illuminate/support": "^11.0|^12.0",
108-
"laravel-json-api/laravel": "^5.0",
109-
"laravel-json-api/non-eloquent": "^4.0",
110-
"laravel-notification-channels/discord": "^1.5",
111-
"lunarphp/lunar": "1.0.0-beta.16",
112-
"lunarphp/stripe": "^1.0.0",
113-
"spatie/laravel-newsletter": "^5.1",
114-
"spatie/laravel-stripe-webhooks": "^3.6",
115-
"staudenmeir/eloquent-has-many-deep": "^1.20"
116-
},
117-
"type": "library",
118-
"authors": [
119-
{
120-
"name": "Dystopia",
121-
"homepage": "https://dy.st/"
122-
}
123-
],
124-
"license": "MIT",
125-
"homepage": "https://github.com/dystcz/dystore-api",
126-
"keywords": [
127-
"dystcz",
128-
"dystopia",
129-
"lunar",
130-
"dystore",
131-
"dystore-api",
132-
"laravel",
133-
"php"
134-
],
135-
"prefer-stable": true
24+
"files": [
25+
"packages/api/autoload.php",
26+
"packages/newsletter/autoload.php",
27+
"packages/product-notifications/autoload.php",
28+
"packages/product-views/autoload.php",
29+
"packages/reviews/autoload.php",
30+
"packages/stripe/autoload.php"
31+
]
32+
},
33+
"minimum-stability": "dev",
34+
"replace": {
35+
"dystcz/dystore-api": "1.0.1",
36+
"dystcz/dystore-newsletter": "1.0.1",
37+
"dystcz/dystore-product-notifications": "1.0.1",
38+
"dystcz/dystore-product-views": "1.0.1",
39+
"dystcz/dystore-reviews": "1.0.1",
40+
"dystcz/dystore-stripe": "1.0.1"
41+
},
42+
"config": {
43+
"sort-packages": true,
44+
"allow-plugins": {
45+
"pestphp/pest-plugin": true,
46+
"php-http/discovery": true
47+
}
48+
},
49+
"scripts": {
50+
"post-autoload-dump": "@composer run prepare",
51+
"artisan": "vendor/bin/testbench",
52+
"clear": "vendor/bin/testbench package:purge --ansi",
53+
"prepare": "vendor/bin/testbench package:discover --ansi",
54+
"package-test": "vendor/bin/testbench package:test",
55+
"test": "vendor/bin/pest",
56+
"test-hashids": "vendor/bin/pest -c phpunit.hashids.xml",
57+
"test-coverage": "vendor/bin/pest --coverage",
58+
"analyse": "vendor/bin/phpstan analyse",
59+
"format": "vendor/bin/pint"
60+
},
61+
"extra": {
62+
"laravel": {
63+
"providers": [
64+
"Dystore\\Api\\ApiHashidsServiceProvider",
65+
"Dystore\\Api\\ApiServiceProvider",
66+
"Dystore\\Api\\JsonApiServiceProvider",
67+
"Dystore\\Newsletter\\NewsletterServiceProvider",
68+
"Dystore\\ProductNotifications\\ProductNotificationsServiceProvider",
69+
"Dystore\\ProductViews\\ProductViewsServiceProvider",
70+
"Dystore\\Reviews\\ReviewsServiceProvider",
71+
"Dystore\\Stripe\\StripeServiceProvider"
72+
]
73+
}
74+
},
75+
"autoload-dev": {
76+
"psr-4": {
77+
"Dystore\\Tests\\Api\\": "tests/api",
78+
"Dystore\\Tests\\Newsletter\\": "tests/newsletter",
79+
"Dystore\\Tests\\ProductNotifications\\": "tests/product-notifications",
80+
"Dystore\\Tests\\ProductViews\\": "tests/product-views",
81+
"Dystore\\Tests\\Reviews\\": "tests/reviews",
82+
"Dystore\\Tests\\Stripe\\": "tests/stripe"
83+
}
84+
},
85+
"require-dev": {
86+
"barryvdh/laravel-ide-helper": "^3.0",
87+
"drewm/mailchimp-api": "^2.5",
88+
"getbrevo/brevo-php": "^1.0",
89+
"larastan/larastan": "^3.0",
90+
"laravel-json-api/testing": "^3.1",
91+
"laravel/pint": "^1.7",
92+
"mockery/mockery": "^1.5",
93+
"orchestra/testbench": "^9.0",
94+
"pestphp/pest": "^2.0",
95+
"pestphp/pest-plugin-arch": "^2.0",
96+
"pestphp/pest-plugin-faker": "^2.0",
97+
"pestphp/pest-plugin-laravel": "^2.0",
98+
"spatie/laravel-ray": "^1.32",
99+
"spatie/mailcoach-sdk-php": "^1.1",
100+
"symplify/monorepo-builder": "^11.2"
101+
},
102+
"description": "Collection of ecommerce packages built on top of Lunar and Laravel JSON:API.",
103+
"require": {
104+
"php": "^8.2",
105+
"ext-redis": "*",
106+
"h4kuna/ares": "^3.0",
107+
"illuminate/support": "^11.0|^12.0",
108+
"laravel-json-api/laravel": "^5.1",
109+
"laravel-json-api/non-eloquent": "^4.2",
110+
"laravel-notification-channels/discord": "^1.5",
111+
"lunarphp/lunar": "1.0.0-beta.16",
112+
"lunarphp/stripe": "^1.0.0",
113+
"spatie/laravel-newsletter": "^5.1",
114+
"spatie/laravel-stripe-webhooks": "^3.6",
115+
"staudenmeir/eloquent-has-many-deep": "^1.20"
116+
},
117+
"type": "library",
118+
"authors": [
119+
{
120+
"name": "Dystopia",
121+
"homepage": "https://dy.st/"
122+
}
123+
],
124+
"license": "MIT",
125+
"homepage": "https://github.com/dystcz/dystore-api",
126+
"keywords": [
127+
"dystcz",
128+
"dystopia",
129+
"lunar",
130+
"dystore",
131+
"dystore-api",
132+
"laravel",
133+
"php"
134+
],
135+
"prefer-stable": true
136136
}

monorepo-builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
ComposerJsonSection::REQUIRE_DEV => [
3636
'barryvdh/laravel-ide-helper' => '^3.0',
3737
'larastan/larastan' => '^3.0',
38-
'laravel-json-api/testing' => '^3.0',
38+
'laravel-json-api/testing' => '^3.1',
3939
'laravel/pint' => '^1.7',
4040
'orchestra/testbench' => '^9.0',
4141
'pestphp/pest' => '^2.0',

packages/api/README.md

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
[![Total Downloads](https://img.shields.io/packagist/dt/dystcz/dystore-api.svg?style=flat-square)](https://packagist.org/packages/dystcz/dystore-api)
55
[![Tests](https://github.com/dystcz/dystore/actions/workflows/tests.yaml/badge.svg)](https://github.com/dystcz/dystore/actions/workflows/tests.yaml)
66

7+
> [!INFO]
8+
> To open issues or contribute, please navigate to the [main repository](https://github.com/dystcz/dystore). This is a subtree split of [dystore](https://github.com/dystcz/dystore) monorepo.
9+
710
> [!CAUTION]
811
> This package is currently under heavy development. It is already used in production, however, you should proceed with caution.
912
@@ -17,13 +20,13 @@ easily build features to meet your project's needs.
1720

1821
## Requirements
1922

20-
- PHP ^8.2
21-
- Laravel 11
22-
- [Lunar requirements](https://docs.lunarphp.io/core/installation.html#server-requirements)
23+
- PHP ^8.2
24+
- Laravel 11
25+
- [Lunar requirements](https://docs.lunarphp.io/core/installation.html#server-requirements)
2326

2427
## Documentation
2528

26-
- [v1.0.0-alpha documentation](https://dystore.docs.dy.st/)
29+
- Coming soon
2730

2831
### Testing
2932

@@ -33,20 +36,20 @@ composer test
3336

3437
### Compatible packages
3538

36-
- [Reviews](https://github.com/dystcz/dystore-reviews) (Adds user reviews functionality)
37-
- [Product Views](https://github.com/dystcz/dystore-product-views)
38-
(Store unique product views in Redis)
39-
- [Product Stock Notifications](https://github.com/dystcz/dystore-product-notifications)
40-
(Notify users when product is in stock again)
41-
- [Newsletter](https://github.com/dystcz/dystore-newsletter)
42-
(Newsletter sign up with support for Mailchimp / Mailcoach / Brevo)
43-
- [Stripe Payment Adapter](https://github.com/dystcz/dystore-stripe)
44-
<!-- - [Mollie Payment Adapter](https://github.com/pixelpillow/lunar-api-mollie-adapter) -->
45-
<!-- - [PayPal Adapter](https://github.com/dystcz/lunar-paypal) [🚧] -->
39+
- [dystore-reviews](https://github.com/dystcz/dystore-reviews) (Adds user reviews functionality)
40+
- [dystore-product-views](https://github.com/dystcz/dystore-product-views)
41+
(Store unique product views in Redis)
42+
- [dystore-product-notifications](https://github.com/dystcz/dystore-product-notifications)
43+
(Notify users when product is in stock again)
44+
- [dystore-newsletter](https://github.com/dystcz/dystore-newsletter)
45+
(Newsletter sign up with support for Mailchimp / Mailcoach / Brevo)
46+
- [dystore-stripe](https://github.com/dystcz/dystore-stripe) (Stripe payment adapter)
47+
<!-- - [Mollie Payment Adapter](https://github.com/pixelpillow/lunar-api-mollie-adapter) -->
48+
<!-- - [PayPal Adapter](https://github.com/dystcz/lunar-paypal) [🚧] -->
4649

4750
### Changelog
4851

49-
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
52+
Please see [CHANGELOG](https://github.com/dystcz/dystore/blob/1.0/CHANGELOG.md) for more information what has changed recently.
5053

5154
## Contributing
5255

@@ -58,10 +61,10 @@ If you discover any security related issues, please email dev@dy.st instead of u
5861

5962
## Credits
6063

61-
- [All Contributors](../../contributors)
62-
- [Lunar](https://github.com/lunarphp/lunar) for providing awesome e-commerce package
63-
- [Laravel JSON:API](https://github.com/laravel-json-api/laravel)
64-
which is a brilliant JSON:API layer for Laravel applications
64+
- [All Contributors](../../contributors)
65+
- [Lunar](https://github.com/lunarphp/lunar) for providing awesome e-commerce package
66+
- [Laravel JSON:API](https://github.com/laravel-json-api/laravel)
67+
which is a brilliant JSON:API layer for Laravel applications
6568

6669
## License
6770

0 commit comments

Comments
 (0)