PHP code example of mediagone / vue-in-twig-bundle

1. Go to this page and download the library: Download mediagone/vue-in-twig-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/ */

    

mediagone / vue-in-twig-bundle example snippets


Mediagone\VueInTwigBundle\VueInTwigBundle::class => ['all' => true],
twig
{% vue_use 'Controls/UploadZone' %}

<vue-upload-zone
    post-url="/upload"
    post-parameter-name="file"
    title="Upload a file"
    drop-text="Drop here or click"
    :allow-multiple-files="false"
    @uploaded="onUploaded"
></vue-upload-zone>
twig
{% vue_use 'Layout/Modal' %}

<vue-modal v-if="showModal" title-text="Title" yes-button-text="Confirm" no-button-text="Cancel" @clickyes="showModal = false" @clickno="showModal = false">
    <p>Modal content.</p>
</vue-modal>