PHP code example of ip / meat-up

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

    

ip / meat-up example snippets



// File: src/DevPro/adminBundle/Entity/Meatup.php

namespace DevPro\adminBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 */
class Meatup
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;
    
    /**
     * @ORM\Column(type="string")
     */
    private $title;
    
    /**
     * @ORM\Column(type="text")
     */
    private $content;
    
    ...
}

...
use Doctrine\ORM\Mapping as ORM;
use Ip\MeatUp\Mapping as MU;
...

...
    /**
    * @ORM\Column(type="string")
    * @MU\OnIndexPage
    */
    private $title;
...
bash
$ php app/console doctrine:generate:entities DevProadminBundle:Meatup
bash
$ php app/console ip:meat-up "DevPro\adminBundle\Entity\Meatup"
bash
$ php app/console ip:meat-up "DevPro\adminBundle\Entity\Meatup"