Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace LegacyTests\Browser\SyncHistory; use Livewire\Component; class Componen..

Decoded Output download

<?php

namespace LegacyTests\Browser\SyncHistory;

use Livewire\Component;

class ComponentWithAlpineEntangle extends Component
{
    public $page = 1;
    public $foo = 'bar';

    protected $queryString = ['page'];

    public function nextPage() { $this->page++; }

    public function render()
    {
        return <<<'blade'
            <div>
                <button wire:click="nextPage" dusk="next">next page</button>
                <span dusk="blade.output">{{ $page }}</span>

                <button wire:click="$set('foo', 'baz')" dusk="changeFoo">prev page</button>
                <div x-data="{ foo: @entangle('foo') }" x-text="foo" dusk="alpine.output"></div>
            </div>
blade;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace LegacyTests\Browser\SyncHistory;

use Livewire\Component;

class ComponentWithAlpineEntangle extends Component
{
    public $page = 1;
    public $foo = 'bar';

    protected $queryString = ['page'];

    public function nextPage() { $this->page++; }

    public function render()
    {
        return <<<'blade'
            <div>
                <button wire:click="nextPage" dusk="next">next page</button>
                <span dusk="blade.output">{{ $page }}</span>

                <button wire:click="$set('foo', 'baz')" dusk="changeFoo">prev page</button>
                <div x-data="{ foo: @entangle('foo') }" x-text="foo" dusk="alpine.output"></div>
            </div>
blade;
    }
}

Function Calls

None

Variables

None

Stats

MD5 3afc65123d0ff67079579b711e50bd63
Eval Count 0
Decode Time 97 ms