Aimeos Laravel Extension integration
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
- tiolierobin
- Posts: 3
- Joined: 01 Sep 2023, 01:17
Aimeos Laravel Extension integration
aimeos/aimeos-laravel: 2023.07
laravel/framework: 10.10
php version 8.2.8
Hi, I am trying to create Aimeos Extension locally by following the step here: https://aimeos.org/docs/2023.x/developer/extensions/ and generating it from the Extension Builder here: https://aimeos.org/extensions/
I already add the repositories section in my composer.json
but when i am running composer req aimeos-extensions/myextension
it shows error: Could not find a version of package aimeos-extensions/myextension matching your minimum-stability (stable). Require it with an explicit version constraint allowing its desired stability
this is the generated composer.json inside myextension package:
and this is my composer.json in my laravel aimeos project:
anyone know what am I missing here? thankyou !
laravel/framework: 10.10
php version 8.2.8
Hi, I am trying to create Aimeos Extension locally by following the step here: https://aimeos.org/docs/2023.x/developer/extensions/ and generating it from the Extension Builder here: https://aimeos.org/extensions/
I already add the repositories section in my composer.json
Code: Select all
"repositories": [{
"type": "composer",
"url": "https://packages.aimeos.org/aimeoscom"
}, {
"type": "path",
"url": "packages/*"
}],
it shows error: Could not find a version of package aimeos-extensions/myextension matching your minimum-stability (stable). Require it with an explicit version constraint allowing its desired stability
this is the generated composer.json inside myextension package:
Code: Select all
{
"name": "aimeos-extensions/myextension",
"description": "Aimeos myextension extension",
"keywords": ["aimeos", "extension"],
"type": "aimeos-extension",
"license": "LGPL-3.0",
"prefer-stable": true,
"minimum-stability": "dev",
"require": {
"php": "^8.0.11",
"aimeos/aimeos-core": "^2023.04"
},
"require-dev": {
"phpunit/phpunit": "~9.0||~10.0"
},
"autoload": {
"psr-4": {
"Aimeos\\": "src"
},
"classmap": [
"src"
]
},
"autoload-dev": {
"psr-4": {
"Aimeos\\": "tests"
},
"classmap": [
"tests"
]
}
}
and this is my composer.json in my laravel aimeos project:
Code: Select all
{
"name": "laravel/laravel",
"type": "project",
"description": "The skeleton application for the Laravel framework.",
"keywords": ["laravel", "framework"],
"license": "MIT",
"require": {
"php": "^8.1",
"aimeos/aimeos-laravel": "~2023.07",
"guzzlehttp/guzzle": "^7.2",
"laravel/breeze": "^1.23",
"laravel/framework": "^10.10",
"laravel/sanctum": "^3.2",
"laravel/tinker": "^2.8"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"laravel/pint": "^1.0",
"laravel/sail": "^1.18",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.1",
"spatie/laravel-ignition": "^2.0"
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi --force",
"@php artisan migrate",
"@php artisan vendor:publish --tag=public --force",
"\\Aimeos\\Shop\\Composer::join"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
]
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true,
"php-http/discovery": true
}
},
"minimum-stability": "stable",
"prefer-stable": true,
"repositories": [{
"type": "composer",
"url": "https://packages.aimeos.org/aimeoscom"
}, {
"type": "path",
"url": "packages/*"
}]
}
Re: Aimeos Laravel Extension integration
Did you extract the extension zip file into packages/myextension/ directory?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

- tiolierobin
- Posts: 3
- Joined: 01 Sep 2023, 01:17
Re: Aimeos Laravel Extension integration
yess, its already in folder, not a zip anymore
Re: Aimeos Laravel Extension integration
Change in your main composer.json:
to:
Code: Select all
"minimum-stability": "stable",
Code: Select all
"minimum-stability": "dev",
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

- tiolierobin
- Posts: 3
- Joined: 01 Sep 2023, 01:17
Re: Aimeos Laravel Extension integration
yeay, its working. thankyou !