承接 gazmend-sahiti/bln 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

gazmend-sahiti/bln

Composer 安装命令:

composer require gazmend-sahiti/bln

包简介

BLN package for Laravel to generate images using ideogram

README 文档

README

This is a simple PHP example demonstrating how to generate an image using the Ideogram API.

Requirements

  • PHP 8+
  • Composer

Installation

  1. Install dependencies via Composer:
composer require gazmend-sahiti/bln
  1. Make sure vendor/autoload.php is included in your project.

Usage

<?php

use GazmendS\BLN\Ideogram;

require 'vendor/autoload.php';

// Replace with your actual API key
$apiKey = 'YOUR_API_KEY_HERE';

$ideogram = Ideogram::make($apiKey);

// $prompt = 'black pretty eyes';
$prompt = 'an Asian street bar in mid July with neon signs, 2 people sitting at stools, and bartenders serving drinks';

$image = $ideogram->generateImage($prompt);

if ($image['success']) {
    echo '<img src="'.$image['data']['url'].'" />';
}

Notes

  • Replace 'YOUR_API_KEY_HERE' with your actual Ideogram API key.
  • The $image variable contains the needed data.

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-06