gazmend-sahiti/bln 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱: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
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固