PHP code example of webhook-ledger / webhook-ledger-bundle

1. Go to this page and download the library: Download webhook-ledger/webhook-ledger-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

webhook-ledger / webhook-ledger-bundle example snippets


WebhookLedger\WebhookLedgerBundle::class => ['all' => true],

final class StripeSourceAdapter implements SourceAdapterInterface
{
    // your code :-)
}

final class Version20260907204611 extends AbstractMigration
{
    public function getDescription(): string
    {
        return 'Generate the transports tables.';
    }

    public function up(Schema $schema): void
    {
        $this->addSql(<<<EOF
            CREATE TABLE messenger_messages (
            id BIGINT AUTO_INCREMENT NOT NULL,
            body LONGTEXT NOT NULL,
            headers LONGTEXT NOT NULL,
            queue_name VARCHAR(190) NOT NULL,
            created_at DATETIME NOT NULL,
            available_at DATETIME NOT NULL,
            delivered_at DATETIME DEFAULT NULL,
            PRIMARY KEY (id)) DEFAULT CHARACTER SET utf8mb4;
EOF);
        $this->addSql('CREATE INDEX IDX_75EA56E0FB7336F0E3BD61CE16BA31DBBF396750 ON messenger_messages (queue_name, available_at, delivered_at, id)');
    }

    public function down(Schema $schema): void
    {
        $this->addSql('DROP TABLE messenger_messages');
    }
}