stil / gd-text

PHP class making it easy to type text on pictures. Supports multi-lined text, horizontal and vertical alignment.
400 stars 131 forks source link

Can't installing via composer #33

Closed dhistira closed 6 years ago

dhistira commented 6 years ago

Problem 1:

I'm running on WAMP, apache 2.4.23, php 7.0.10. Any ideas?

stil commented 6 years ago

Can you please paste your composer.json file?

dhistira commented 6 years ago
{
    "name": "stil/gd-text",
    "description": "A class drawing multiline and aligned text on pictures. Uses GD extension.",
    "license": "MIT",
    "require": {
        "php": ">=5.3",
        "ext-gd": "*",
        "phpunit/phpunit": "6.2"
    },
    "require-dev": {
    },
    "autoload": {
        "psr-4": {
            "GDText\\": "src/",
            "GDText\\Tests\\": "tests/"
        }
    }
}
stil commented 6 years ago

Firstly, it's not your composer.json, you pasted project's composer.json instead.

To install stil/gd-text follow those steps:

  1. Make sure you have Composer installed. Composer is used to manage PHP libraries.
  2. Open console window and navigate to your project directory.
  3. Type following command to install stil/gd-text:
    composer require stil/gd-text

If you see output similiar to this:

Using version ^1.1 for stil/gd-text
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Installing stil/gd-text (v1.1.0): Downloading (100%)         
Writing lock file
Generating autoload files

it means it successfully has been installed.

dhistira commented 6 years ago

Thanks! It works now just by re-installing it