GithubHelp home page GithubHelp logo

pplog-php's Introduction

Pplog-php

http://www.pplog.net/よりポエムを取得して表示するだけです。
zshログイン時や処理待ち時間などのお供に。

Installation

$ git clone https://github.com/catls/pplog-php.git

クラスだけ

$ wget -q https://raw.githubusercontent.com/catls/pplog-php/master/Pplog.php

Usage

  • ポエムを表示する
./pplog

実行例

ねむい
---------------------------------------------
ぽよぽよ( ˘ω˘)

@user_name (2014/04/08 09:31:11)

Pplog Class Usage

  • ポエムを表示する
$Pplog = new Pplog();
$Pplog->zapping();
echo $Pplog->getPoem();

// ワンライナー
echo (new Pplog())->zapping()->getPoem();
  • 特定ユーザのポエムを表示する
$Pplog = new Pplog();
echo $Pplog->getUserPoem('user_name')->getPoem();

// ユーザ名はクラス作成時にも指定出来ます
echo (new Pplog('user_name'))->getPoem();
  • 内容を個別に取得する
$Pblog->zapping();

echo $Pblog->user_name;  // ユーザ名
echo $Pblog->title;      // タイトル
echo $Pblog->content;    // ポエム内容
echo $Pblog->created_at; // 投稿日時

pplog-php's People

Contributors

catls avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.