Generate Titanium icons and splash screens - Based on https://github.com/FokkeZB/TiCons
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/Econcepto/PHPTi/Medias
README.md
composer.json

README.md

PhpTiCons

Generate Titanium icons and splash screens
Based on Fokke Zandbergen TiCons project

Installation:

The library is PSR-0 compliant and the simplest way to install it is via composer, simply add:

{
    "require": {
        "ba/php-ticons": "dev-master"
    }
}

into your composer.json, then run 'composer install' or 'composer update' as required.

Example:

This example demonstrates the generation of IOS and Android icons and splash screens based on a
1024x1024 png icon file and a 2208x2208 png splash screen.

<?php
    use Econcepto\PHPTi\Medias\PhpTIcons;

    include('vendor/autoload.php');

    $generator = new PhpTIcons();
    $generator
        ->setPlatforms([PhpTIcons::PLATFORM_IPHONE, PhpTIcons::PLATFORM_IPAD, PhpTIcons::PLATFORM_ANDROID])
        ->setOutputDir(__DIR__.'/my_titanium_project');
        
    $generator->icons('my_base_icon.png');
    $generator->splash('my_base_splash.png');