arobases-sylius-public / sylius-instagram-plugin
Provide Instagram Feed on Sylius
Installs: 59
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 7
Type:sylius-plugin
Requires
- php: ^7.4 || ^8.0
- jstolpe/instagram-graph-api-php-sdk: ^1.0
- sylius/sylius: ^1.10
Requires (Dev)
- behat/behat: ^3.6.1
- behat/mink-selenium2-driver: ^1.4
- dmore/behat-chrome-extension: ^1.3
- dmore/chrome-mink-driver: ^2.7
- friends-of-behat/mink: ^1.8
- friends-of-behat/mink-browserkit-driver: ^1.4
- friends-of-behat/mink-debug-extension: ^2.0.0
- friends-of-behat/mink-extension: ^2.4
- friends-of-behat/page-object-extension: ^0.3
- friends-of-behat/suite-settings-extension: ^1.0
- friends-of-behat/symfony-extension: ^2.1
- friends-of-behat/variadic-extension: ^1.3
- friendsofsymfony/oauth-server-bundle: ^1.6 || >2.0.0-alpha.0 ^2.0@dev
- phpspec/phpspec: ^7.0
- phpstan/extension-installer: ^1.0
- phpstan/phpstan: 0.12.99
- phpstan/phpstan-doctrine: 0.12.33
- phpstan/phpstan-strict-rules: ^0.12.0
- phpstan/phpstan-webmozart-assert: 0.12.12
- phpunit/phpunit: ^9.5
- polishsymfonycommunity/symfony-mocker-container: ^1.0
- sensiolabs/security-checker: ^6.0
- sylius-labs/coding-standard: ^4.0
- symfony/browser-kit: ^4.4 || ^5.2
- symfony/debug-bundle: ^4.4 || ^5.2
- symfony/dotenv: ^4.4 || ^5.2
- symfony/intl: ^4.4 || ^5.2
- symfony/web-profiler-bundle: ^4.4 || ^5.2
- vimeo/psalm: 4.7.1
- dev-master / 1.10.x-dev
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-fix-github-actions
- dev-dependabot/composer/vimeo/psalm-5.8.0
- dev-camilleislasse-patch-1
- dev-JeremyCst-patch-1
- dev-dependabot/composer/phpstan/phpstan-0.12.100
- dev-dev-fix-service
- dev-dev-test
- dev-dev
- dev-dependabot/composer/phpstan/phpstan-webmozart-assert-0.12.16
- dev-dependabot/composer/phpstan/phpstan-doctrine-0.12.44
This package is auto-updated.
Last update: 2023-09-27 07:39:34 UTC
README
ArobasesSyliusInstagramPlugin
Provide Instagram Feed on Sylius.
Installation
Composer
composer require arobases-sylius-public/sylius-instagram-plugin
Use ChannelTrait and ChannelInterface:
<?php declare(strict_types=1); namespace App\Entity\Channel; use Arobases\SyliusInstagramPlugin\Model\ChannelInterface; use Arobases\SyliusInstagramPlugin\Model\ChannelTrait; use Doctrine\ORM\Mapping as ORM; use Sylius\Component\Core\Model\Channel as BaseChannel; /** * @ORM\Entity * @ORM\Table(name="sylius_channel") */ class Channel extends BaseChannel implements ChannelInterface { use ChannelTrait; }
Update the schema
php bin/console doctrine:schema:update --force
Now you have access to an array representing the response of instagram
You can use it everywhere you want and render like you want
{% include "@ArobasesSyliusInstagramPlugin/Instagram/_instagram.html.twig" with {'data' : app_get_instagram_feed() } %}