{"id":161,"date":"2012-05-13T22:05:59","date_gmt":"2012-05-14T03:05:59","guid":{"rendered":"http:\/\/pavelshub.com\/blog\/?p=161"},"modified":"2012-05-13T22:05:59","modified_gmt":"2012-05-14T03:05:59","slug":"pear-in-lithium-php","status":"publish","type":"post","link":"https:\/\/pavelshub.com\/blog\/2012\/05\/pear-in-lithium-php\/","title":{"rendered":"PEAR in lithium PHP"},"content":{"rendered":"<p>Googling for PEAR and Lithium PHP will inevitably lead you to their <a title=\"Lithium PHP Pear documentation\" href=\"http:\/\/lithify.me\/docs\/manual\/extending-lithium\/third-party-libraries.wiki\" target=\"_blank\">docs<\/a>. This pretty much describes all you have to do. Just keep in mind a few things:<\/p>\n<ol>\n<li>You don&#8217;t have to use the above method. It&#8217;s only if you&#8217;d like to use the &#8220;use&#8221; keyword to load the classes. You can still easily import the files via include or require.<\/li>\n<li>To refer to a class you have to use the \\. e.g. $cmonth = new \\Calendar_Month_Weekdays($year, $month);<\/li>\n<li>Don&#8217;t forget to put PEAR in the libraries folder of your lithium installation. Don&#8217;t blindly follow the doc. Mine was in \/usr\/share\/pear\/ (on arch linux)<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Googling for PEAR and Lithium PHP will inevitably lead you to their docs. This pretty much describes all you have to do. Just keep in mind a few things: You don&#8217;t have to use the above method. It&#8217;s only if &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/pavelshub.com\/blog\/2012\/05\/pear-in-lithium-php\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[7],"tags":[38,42],"class_list":["post-161","post","type-post","status-publish","format-standard","hentry","category-projects","tag-lithium-php","tag-pear"],"_links":{"self":[{"href":"https:\/\/pavelshub.com\/blog\/wp-json\/wp\/v2\/posts\/161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pavelshub.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pavelshub.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pavelshub.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pavelshub.com\/blog\/wp-json\/wp\/v2\/comments?post=161"}],"version-history":[{"count":3,"href":"https:\/\/pavelshub.com\/blog\/wp-json\/wp\/v2\/posts\/161\/revisions"}],"predecessor-version":[{"id":164,"href":"https:\/\/pavelshub.com\/blog\/wp-json\/wp\/v2\/posts\/161\/revisions\/164"}],"wp:attachment":[{"href":"https:\/\/pavelshub.com\/blog\/wp-json\/wp\/v2\/media?parent=161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pavelshub.com\/blog\/wp-json\/wp\/v2\/categories?post=161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pavelshub.com\/blog\/wp-json\/wp\/v2\/tags?post=161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}