PHP code example of survos / core-bundle

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

    

survos / core-bundle example snippets



// src/Entity/Foo.php
namespace App\Entity;

use Survos\FieldBundle\Attribute\RouteIdentity;
use Survos\FieldBundle\Entity\RouteIdentityTrait;
use Survos\FieldBundle\Entity\RouteParametersInterface;

#[RouteIdentity(field: 'code')]
class Foo implements RouteParametersInterface
{
    use RouteIdentityTrait;
}