新しいプロジェクトの追加はプロジェクト情報作成から行えます

誰でもコミットできます Services_GoogleChartApiQR

Subversion Repository: http://openpear.org/repository/Services_GoogleChartApiQR / Latest Release: 0.0.1-alpha

GoogleChartAPI QR CodesのAPIを叩くライブラリです

http://code.google.com/intl/ja/apis/chart/docs/gallery/qr_codes.html

>|php|

<?php

/**

* example.php

*

*/

require_once 'Services/GoogleChartApiQR.php';

$qr = new Services_GoogleChartApiQR(200,200);

$qr->setChoe('UTF-8');

$qr->setForceEncode(true);

$str = "google chart api qr codes." . "\r\n"

. "テスト";

$qr->setChl($str);

try {

$view = $qr->view();

$data = $qr->create();

} catch (Exception $e) {

echo $e->getMessage();

}

echo "<img src=\"$view\">";

$fp = fopen('sample.jpg', "w");

fwrite($fp, $data);

||<

How to Install

sudo pear install openpear/Services_GoogleChartApiQR-alpha

このプロジェクトを応援する開発者!

gravatar halt

maintainer

gravatar tknzk (lead)

http://tknzk.com