PHP code example of osw3 / symfony-media

1. Go to this page and download the library: Download osw3/symfony-media 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/ */

    

osw3 / symfony-media example snippets

 
// config/bundles.php

return [
    // ...
    OSW3\Media\MediaBundle::class => ['all' => true],
];
 
use OSW3\Media\Trait\Entity\MediaTrait;

#[ORM\Entity(repositoryClass: MediaRepository::class)]
class Media
{
    use MediaTrait;
}
shell 
composer