{"id":25044667,"url":"https://github.com/webgriffe/syliusheylightplugin","last_synced_at":"2026-03-03T19:01:31.593Z","repository":{"id":219085056,"uuid":"746778939","full_name":"webgriffe/SyliusHeyLightPlugin","owner":"webgriffe","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-20T17:05:01.000Z","size":449,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-01-21T01:41:31.453Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webgriffe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-01-22T16:54:12.000Z","updated_at":"2025-11-10T10:02:32.000Z","dependencies_parsed_at":"2025-10-09T04:09:23.350Z","dependency_job_id":"0a6bab53-4e01-45d5-bbe1-de69ff2391aa","html_url":"https://github.com/webgriffe/SyliusHeyLightPlugin","commit_stats":null,"previous_names":["webgriffe/syliuspagolightplugin","webgriffe/syliusheylightplugin"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/webgriffe/SyliusHeyLightPlugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2FSyliusHeyLightPlugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2FSyliusHeyLightPlugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2FSyliusHeyLightPlugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2FSyliusHeyLightPlugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webgriffe","download_url":"https://codeload.github.com/webgriffe/SyliusHeyLightPlugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2FSyliusHeyLightPlugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30056056,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T18:21:05.932Z","status":"ssl_error","status_checked_at":"2026-03-03T18:20:59.341Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-06T05:18:59.029Z","updated_at":"2026-03-03T19:01:31.586Z","avatar_url":"https://github.com/webgriffe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://sylius.com\" target=\"_blank\"\u003e\n        \u003cpicture\u003e\n          \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://media.sylius.com/sylius-logo-800-dark.png\"\u003e\n          \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://media.sylius.com/sylius-logo-800.png\"\u003e\n          \u003cimg alt=\"Sylius Logo.\" src=\"https://media.sylius.com/sylius-logo-800.png\"\u003e\n        \u003c/picture\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eSylius \u003ca href=\"https://heylight.com/\" target=\"_blank\"\u003eHeyLight\u003c/a\u003e Plugin\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003eSylius plugin for HeyLight payment gateway (ex PagoLight BNPL and PagoLight PRO).\u003c/p\u003e\n\n## Installation\n\n1. Run:\n    ```bash\n    composer require webgriffe/sylius-heylight-plugin\n   ```\n\n2. Add `Webgriffe\\SyliusHeylightPlugin\\WebgriffeSyliusHeylightPlugin::class =\u003e ['all' =\u003e true]` to your `config/bundles.php`.\n   \n   Normally, the plugin is automatically added to the `config/bundles.php` file by the `composer require` command. If it is not, you have to add it manually.\n\n3. Create a new file config/packages/webgriffe_sylius_heylight_plugin.yaml:\n   ```yaml\n   imports:\n       - { resource: \"@WebgriffeSyliusHeylightPlugin/config/config.php\" }\n   ```\n\n4. Import the routes needed for cancelling the payments. Add the following to your config/routes.yaml file:\n   ```yaml\n   webgriffe_sylius_heylight_plugin_shop:\n       resource: \"@WebgriffeSyliusHeylightPlugin/config/routes/shop.php\"\n       prefix: /{_locale}\n       requirements:\n           _locale: ^[A-Za-z]{2,4}(_([A-Za-z]{4}|[0-9]{3}))?(_([A-Za-z]{2}|[0-9]{3}))?$\n\n   webgriffe_sylius_heylight_plugin_ajax:\n       resource: \"@WebgriffeSyliusHeylightPlugin/config/routes/shop_ajax.php\"\n\n   sylius_shop_payum_cancel:\n       resource: \"@PayumBundle/Resources/config/routing/cancel.xml\"\n\n   ```\n   **NB:** The file shop_routing needs to be after the prefix _locale, so that messages can be displayed in the right\n   language. You should also include the cancel routes from the Payum bundle if you do not have it already!\n\n5. Run:\n    ```bash\n    php bin/console sylius:install:assets\n   ```\n\n## Usage\n\nAccess to the admin panel and go to the `Payment methods` section. Create a new payment method and select `HeyLight BNPL`\nor `HeyLight Financing` as gateway. Then, configure the payment method with the required parameters.\n\n## Contributing\n\nFor a comprehensive guide on Sylius Plugins development please go to Sylius documentation,\nthere you will find the \u003ca href=\"https://docs.sylius.com/plugins-development-guide/how-to-create-a-plugin-for-sylius\"\u003ePlugin Development Guide\u003c/a\u003e - it's a great place to start.\n\nFor more information about the **Test Application** included in the skeleton, please refer to the [Sylius documentation](https://docs.sylius.com/plugins-development-guide/test-application).\n\n### Traditional\n\n1. From the plugin skeleton root directory, run the following commands:\n   \n    ```bash\n    (cd vendor/sylius/test-application \u0026\u0026 yarn install)\n    (cd vendor/sylius/test-application \u0026\u0026 yarn build)\n    vendor/bin/console assets:install\n   \n    vendor/bin/console doctrine:database:create\n    vendor/bin/console doctrine:migrations:migrate -n\n    # Optionally load data fixtures\n    vendor/bin/console sylius:fixtures:load -n\n    ```\n\nTo be able to set up a plugin's database, remember to configure your database credentials in `tests/TestApplication/.env` and `tests/TestApplication/.env.test`.\n\n2. Run your local server:\n   \n      ```bash\n      symfony server:ca:install\n      symfony server:start -d\n      ```\n\n3. Open your browser and navigate to `https://localhost:8000`.\n\n### Docker\n\n1. Execute `make init` to initialize the container and install the dependencies.\n\n2. Execute `make database-init` to create the database and run migrations.\n\n3. (Optional) Execute `make load-fixtures` to load the fixtures.\n\n4. Your app is available at `http://localhost`.\n\n## Usage\n\n### Running plugin tests\n\n- PHPUnit\n  \n  ```bash\n  vendor/bin/phpunit\n  ```\n\n- Behat (non-JS scenarios)\n  \n  ```bash\n  vendor/bin/behat --strict --tags=\"~@javascript\u0026\u0026~@mink:chromedriver\"\n  ```\n\n- Behat (JS scenarios)\n    \n    1. [Install Symfony CLI command](https://symfony.com/download).\n    \n    2. Start Headless Chrome:\n  \n    ```bash\n    google-chrome-stable --enable-automation --disable-background-networking --no-default-browser-check --no-first-run --disable-popup-blocking --disable-default-apps --allow-insecure-localhost --disable-translate --disable-extensions --no-sandbox --enable-features=Metal --headless --remote-debugging-port=9222 --window-size=2880,1800 --proxy-server='direct://' --proxy-bypass-list='*' http://127.0.0.1\n    ```\n    \n    3. Install SSL certificates (only once needed) and run test application's webserver on `127.0.0.1:8080`:\n  \n    ```bash\n    symfony server:ca:install\n    APP_ENV=test symfony server:start --port=8080 --daemon\n    ```\n    \n    4. Run Behat:\n  \n    ```bash\n    vendor/bin/behat --strict --tags=\"@javascript,@mink:chromedriver\"\n    ```\n\n- Static Analysis\n    \n    - PHPStan\n      \n      ```bash\n      vendor/bin/phpstan analyse -c phpstan.neon -l max src/  \n      ```\n    \n    - Psalm\n      \n      ```bash\n      vendor/bin/psalm\n      ```\n\n- Coding Standard\n  \n  ```bash\n  vendor/bin/ecs check\n  ```\n\n### Opening Sylius with your plugin\n\n- Using `test` environment:\n  \n    ```bash\n    APP_ENV=test vendor/bin/console vendor/bin/console sylius:fixtures:load -n\n    APP_ENV=test symfony server:start -d\n    ```\n\n- Using `dev` environment:\n  \n    ```bash\n    vendor/bin/console vendor/bin/console sylius:fixtures:load -n\n    symfony server:start -d\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebgriffe%2Fsyliusheylightplugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebgriffe%2Fsyliusheylightplugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebgriffe%2Fsyliusheylightplugin/lists"}