Error creating a project extension

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
iwpress
Posts: 16
Joined: 04 Feb 2024, 17:22

Error creating a project extension

Post by iwpress » 04 Feb 2024, 20:31

Hello Aimeos,
aimeos/ai-laravel v.2023.10.4 Laravel v.10.43.0 PHP v.8.1.27, MacOS 14.2
I am at the very beginning of my journey. I want to make an extension for my project.
I did it according to the documentation:
1. Using the Aimeos extension builder, I prepared an extension for my project called shop.
2. I received the shop.zip archive.
3. Created a folder /packages/shop (DocumentRoot of my site: /public). Unzipped shop.zip into the shop folder.
4. In composer.json added:

Code: Select all

"repositories": [{
        "type": "composer",
        "url": "https://packages.aimeos.org/aimeoscom"
    }, {
        "type": "path",
        "url": "packages/*"
    }]
5. Executed the command: composer req aimeos-extensions/shop
6. I got an error: PackageDiscoveryTrait.php line 332:
Could not find a version of package aimeos-extensions/shop matching your minimum-stability. Require it with an explicit version constraint allowing its desired stability.

Please help me to make the extension. And can it be done directly in the /shop folder?

iwpress
Posts: 16
Joined: 04 Feb 2024, 17:22

Re: Error creating a project extension

Post by iwpress » 05 Feb 2024, 22:08

Can someone who knows about this help me?

User avatar
aimeos
Administrator
Posts: 7894
Joined: 01 Jan 1970, 00:00

Re: Error creating a project extension

Post by aimeos » 05 Feb 2024, 22:32

Did you create a sub-directory in the existing ./packages/ directory for your extension and unzipped the generated extension there? The ./packages/ directory is in the root directory of your Laravel application (not in the ./public/ directory!)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

iwpress
Posts: 16
Joined: 04 Feb 2024, 17:22

Re: Error creating a project extension

Post by iwpress » 05 Feb 2024, 23:34

Thank you.
That's exactly what I did.

Lowered "minimum-stability" to 'dev' and the error disappeared.
On package mcarrowsmith-packages/shopify-graphql-client (v1.1) prompts for login and password.
Is this a paid package?
I correctly chose Aimeos 2023.x extension, maybe I should choose Laravel theme 2023.x extension for aimeos-laravel?

User avatar
aimeos
Administrator
Posts: 7894
Joined: 01 Jan 1970, 00:00

Re: Error creating a project extension

Post by aimeos » 07 Feb 2024, 09:06

The mentioned package isn't one of ours and we also don't require it.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

iwpress
Posts: 16
Joined: 04 Feb 2024, 17:22

Re: Error creating a project extension

Post by iwpress » 08 Feb 2024, 08:56

Thank you.

I correctly chose Aimeos 2023.x extension, maybe I should choose Laravel theme 2023.x extension for aimeos-laravel?

BR

iwpress
Posts: 16
Joined: 04 Feb 2024, 17:22

Re: Error creating a project extension

Post by iwpress » 08 Feb 2024, 09:31

I'm sorry,

I made so many attempts that unnecessary dependencies appeared: mcarrowsmith-packages.
Actually, the problem was that when I switched to Laravel 10, I set 'minimum-stability' to 'stable'.
Now I installed 'dev' and did the installation from the beginning. And, praise be to Aimeos, the extension is installed without any errors. My problem is solved.

I installed the Aimeos 2023.x extension for aimeos-laravel.

Thank you very much for your help and detailed replies.

Best Regards.

User avatar
aimeos
Administrator
Posts: 7894
Joined: 01 Jan 1970, 00:00

Re: Error creating a project extension

Post by aimeos » 09 Feb 2024, 10:11

iwpress wrote: 08 Feb 2024, 08:56 I correctly chose Aimeos 2023.x extension, maybe I should choose Laravel theme 2023.x extension for aimeos-laravel?
The Laravel theme extension is only required if you want to offer a custom theme which can be selected in the admin backend. For all other requirements, the standard Aimeos extensions are sufficient.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

iwpress
Posts: 16
Joined: 04 Feb 2024, 17:22

Re: Error creating a project extension

Post by iwpress » 09 Feb 2024, 18:00

Thank you, I'll keep that in mind.

Post Reply