How to enable ioncude loader in App Platform for Laravel Project ?

As i have raise this ticket to digital ocean by support ticket and they said as follows :

To install PHP extension you would need to use Composer with your app to specify that version. 

Something like this should work for both ioncube:

    "require": {
        "ioncube": "*"

That would be configured in your composer.json file. As we use Heroku build packs typically composer is the recommended route for anything PHP. 

I have tried to include it in composer.json file but still it gets failed as below :

[2021-04-11T19:36:16.947517078Z] require.ioncube is invalid, it should have a vendor name, a forward slash, and a package name. The vendor and package name can be words separated by -, . or _. The complete name should match "^[a-z0-9]([_.-]?[a-z0-9] )*/[a-z0-9](([_.]?|-{0,2})[a-z0-9] )*$".

Also this raise to support team and they suggest me as follow :-

The error seems to be related to the convention for describing the extension for installation. I have searched the error related to the IonCube installation and found a related link for how to add the extension in the composer.json file. Kindly visit the link below.

Now for first link i have tried below code

"require": {
    "setasign/fpdi_pdf-parser_eval_ioncube_php7.1": "^2.0"

but it still gets failed as follows :-

- Root composer.json requires setasign/fpdi_pdf-parser_eval_ioncube_php7.1, it could not be found in any version, there may be a typo in the package name.

i have added second link changes but still it not enable ioncube loader.

I have also tried with only include 2nd link changes but still it get failed.

attaching the composer.json for you reference.

    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": [
    "license": "MIT",
    "require": {
        "php": "7.3.*",
        "composer-plugin-api": "^2.0",
        "setasign/fpdi_pdf-parser_eval_ioncube_php7.1": "^2.0",
        "anandsiddharth/laravel-paytm-wallet": "^1.0",
        "bavix/laravel-wallet": "^4.0",
        "berkayk/onesignal-laravel": "^1.0",
        "christiankuri/laravel-favorite": "^1.4",
        "chumper/zipper": "^1.0",
        "cyber-duck/laravel-excel": "^1.2",
        "doctrine/dbal": "^2.9",
        "fideloper/proxy": "^4.0",
        "fruitcake/laravel-cors": "^2.0",
        "fzaninotto/faker": "^1.8",
        "intervention/image": "^2.4",
        "ixudra/curl": "^6.16",
        "jackiedo/dotenv-editor": "^1.0",
        "jenssegers/agent": "^2.6",
        "lab404/laravel-impersonate": "1.5.1",
        "laravel/framework": "5.8.*",
        "laravel/tinker": "^1.0",
        "league/omnipay": "3",
        "linfo/linfo": "^4.0",
        "maatwebsite/excel": "^3.1",
        "mercadopago/dx-php": "2.0.0",
        "mews/captcha": "^3.0",
        "mike42/escpos-php": "2.2",
        "mjaschen/phpgeo": "3.0",
        "nesbot/carbon": "2.22.0",
        "nwidart/laravel-modules": "^6.2",
        "omnipay/paypal": "^3.0",
        "omnipay/stripe": "^3.0",
        "pcinaglia/laraupdater": "^1.0",
        "pilabrem/laravel-permission-ui": "^0.0.8",
        "rap2hpoutre/laravel-log-viewer": "^1.7",
        "razorpay/razorpay": "2.*",
        "s-ichikawa/laravel-sendgrid-driver": "2.1.0",
        "spatie/eloquent-sortable": "^3.8",
        "spatie/geocoder": "^3.6",
        "spatie/laravel-activitylog": "3.8.0",
        "spatie/laravel-backup": "^6.11",
        "spatie/laravel-permission": "^2.37",
        "stripe/stripe-php": "^7.49",
        "twilio/sdk": "^5.36",
        "tymon/jwt-auth": "dev-develop",
        "vinkla/hashids": "^6.0",
        "willvincent/laravel-rateable": "1.0.9",
        "yajra/laravel-datatables-oracle": "~9.0",
        "zanysoft/laravel-zip": "^1.0"
    "require-dev": {
        "barryvdh/laravel-debugbar": "^3.2",
        "beyondcode/laravel-dump-server": "^1.0",
        "filp/whoops": "^2.0",
        "jzonta/faker-restaurant": "^1.0",
        "mockery/mockery": "^1.0",
        "nunomaduro/collision": "^2.0",
        "phpunit/phpunit": "^7.0"
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true
    "extra": {
        "class": "setasign\\ComposerIoncubeLicenseInstaller\\InstallerPlugin",
        "laravel": {
            "dont-discover": []
    "autoload": {
        "psr-4": {
            "App\\": "app/",
            "Modules\\": "Modules/",
            "setasign\\ComposerIoncubeLicenseInstaller\\": "src/"
        "files": ["app/Http/helpers.php", "app/Helpers/Ver/Anton.php", "app/Helpers/Ver/Worker.php", "app/Helpers/Ver/NodeClient.php", "app/Helpers/Ver/Cluster.php"],
        "classmap": [
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
    "minimum-stability": "dev",
    "prefer-stable": true,
    "scripts": {
        "post-autoload-dump": [
            "@php artisan package:discover --ansi"
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"

Please if anyone know any solution let me know…


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @laprontechnologies

Unfortunately ioncube is not supported by default. In this case you will need to use a Dockerfile which allows you to completely customize and build and runtime environment for your app.