2017 © Pedro Peláez
 

library delphi-compat

Interpret data generated by Delphi resources.

image

mero/delphi-compat

Interpret data generated by Delphi resources.

  • Thursday, October 6, 2016
  • by merorafael
  • Repository
  • 1 Watchers
  • 0 Stars
  • 575 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

DelphiCompat

SensioLabsInsight Build Status Latest Stable Version Total Downloads License, (*1)

Interpret data generated by Delphi resources., (*2)

Requeriments

  • PHP 5.5.9 or above

Instalation with composer

  1. Open your project directory;
  2. Run composer require mero/delphi-compat to add DelphiCompat in your project vendor.

TColor

Class for managing color in TColor format., (*3)

Name Atributes Description
__construct $color Construct calling setColor
setColor $color Define color using TColor format
getTColor Return color in TColor format
getRGB Return color in RGB format
getHex Return color in hex format

Usage example:

namespace Acme\Bundle\BlogBundle;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Mero\DelphiCompat\TColor;

class NewsController extends Controller
{

    /**
     * @Route("/", name="news")
     */
    public function indexAction()
    {
        $tcolor = new TColor("16744576");
        $colorRGB = $tcolor->getRGB(); // Return Array([r] => 128, [g] => 128, [b] => 255)
        $colorHex = $tcolor->getHex(); // Return "#8080ff"
        $colorTColor = $tcolor->getTColor(); // Return "16744576"
        $tcolor->setColor("0");
        $colorHex = $tcolor->getHex(); // Return "#000000"
    }

}

The Versions

06/10 2016

dev-master

9999999-dev https://github.com/merorafael/DelphiCompat

Interpret data generated by Delphi resources.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

compat mero delphi tcolor

19/01 2016

0.1.0

0.1.0.0 https://github.com/merorafael/DelphiCompat

Interpret data generated by Delphi resources.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

compat mero delphi tcolor