<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yjhm214</author_name>
  <author_url>https://blog.hatena.ne.jp/yjhm214/</author_url>
  <blog_title>Tech memo</blog_title>
  <blog_url>https://tech-yjhm214.hatenablog.com/</blog_url>
  <categories>
    <anon>PHP</anon>
    <anon>Lumen</anon>
  </categories>
  <description>つくるもの Lumen でどこからでも使える共通関数を作る。 共通関数 Common::sayHello() をつかうと 'Hello!!' と返す共通関数を作成する。 共通クラスを追加 app/Libs/Common.php を作成し、そこにCommonクラスを定義する。 &lt;?php namespace App\Libs; class Common { public static function sayHello() { echo 'Hello!!'; } } こんな感じ。 Composer にクラスマップを登録 composer.json にクラスマップを登録する。 &quot;autoload&quot;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech-yjhm214.hatenablog.com%2Fentry%2Flumen-make-common-function&quot; title=&quot;Lumen での共通関数の作りかた - Tech memo&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://images-fe.ssl-images-amazon.com/images/I/61tpe696zdL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-01-19 09:50:47</published>
  <title>Lumen での共通関数の作りかた</title>
  <type>rich</type>
  <url>https://tech-yjhm214.hatenablog.com/entry/lumen-make-common-function</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
