{"id":255260,"date":"2015-04-15T11:56:02","date_gmt":"2015-04-15T07:56:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=255260"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=255260","title":{"rendered":"Lumen \u2014 \u043d\u043e\u0432\u044b\u0439 PHP-\u043c\u0438\u043a\u0440\u043e\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u043e\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 Laravel"},"content":{"rendered":"<p> \t\t\t<img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/701\/84f\/8bb\/70184f8bb99b4e1aa405171de7ffd408.jpg\"\/><\/p>\n<p>  \u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442!<\/p>\n<p>  \u0411\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043d\u0435\u0439 \u043d\u0430\u0437\u0430\u0434 Taylor Otwell, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0448\u0438\u0440\u043e\u043a\u043e \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0433\u043e \u0438, \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435, \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0433\u043e \u0432 \u0437\u0430\u043f\u0430\u0434\u043d\u043e\u043c \u043c\u0438\u0440\u0435 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 Laravel, \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0432 \u0441\u0432\u043e\u0435\u043c \u0442\u0432\u0438\u0442\u0442\u0435\u0440\u0435, \u0447\u0442\u043e \u043f\u043e\u043c\u0438\u043c\u043e Laravel \u043e\u043d \u0433\u043e\u0442\u043e\u0432\u0438\u0442 \u043a \u0432\u044b\u043f\u0443\u0441\u043a\u0443 \u043a\u043e\u0435-\u0447\u0442\u043e \u0435\u0449\u0435, \u0447\u0435\u043c, \u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u0437\u0430\u0438\u043d\u0442\u0440\u0438\u0433\u043e\u0432\u0430\u043b \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u043e\u0432.<\/p>\n<blockquote class=\"twitter-tweet\" lang=\"ru\">\n<p>What if Laravel 5.1 isn\u2019t the only framework I\u2019m preparing for release? <a href=\"http:\/\/t.co\/7oHVioDRYr\">http:\/\/t.co\/7oHVioDRYr<\/a><\/p>\n<p>&mdash; Taylor Otwell (@taylorotwell) <a href=\"https:\/\/twitter.com\/taylorotwell\/status\/585448606062088192\">7 \u0430\u043f\u0440\u0435\u043b\u044f 2015<\/a><\/p><\/blockquote>\n<p> <script async src=\"\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><br \/>  \u0414\u043e\u043b\u0433\u043e \u0436\u0434\u0430\u0442\u044c \u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c. \u0423\u0436\u0435 \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0434\u0435\u043b\u044e \u0431\u044b\u043b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d <a href=\"http:\/\/lumen.laravel.com\/\">Lumen<\/a>, \u043c\u0438\u043a\u0440\u043e\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 Laravel. \u041f\u043e\u0447\u0435\u043c\u0443 \u043e\u043d \u0442\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u2014 \u00abLumen\u00bb? \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432\u0441\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b Laravel, \u043a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e, \u043d\u043e\u0441\u044f\u0442 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 Illuminate.<\/p>\n<p>  \u0427\u0442\u043e \u0436\u0435 \u0441\u043e\u0431\u043e\u0439 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u044d\u0442\u043e\u0442 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a? \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<pre><code>composer create-project laravel\/lumen --prefer-dist <\/code><\/pre>\n<p>  \u0420\u0430\u0437\u043c\u0435\u0440 \u0447\u0438\u0441\u0442\u043e\u0433\u043e \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435 \u2014 \u0447\u0442\u043e-\u0442\u043e \u043e\u043a\u043e\u043b\u043e 10 \u041c\u0411. \u041d\u0435 \u0442\u0430\u043a\u043e\u0439 \u0443\u0436 \u043e\u043d \u0438 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439! \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u044d\u0442\u043e \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442 \u0435\u043c\u0443 \u043d\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u00ab\u043c\u0438\u043a\u0440\u043e\u00bb, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u00ab\u043c\u0438\u043a\u0440\u043e\u00bb \u2014 \u044d\u0442\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437\u043c\u0435\u0440.<\/p>\n<p>  \u0412\u043d\u0443\u0442\u0440\u0438 \u2014 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b Laravel 5. \u041c\u043e\u0434\u0435\u043b\u0438 Eloquent, \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f Auth, \u0448\u0430\u0431\u043b\u043e\u043d\u044b Blade, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044f, \u043a\u044d\u0448, middleware, DIC \u0438 \u043f\u0440\u043e\u0447\u0435\u0435.<\/p>\n<p>  \u0420\u043e\u0443\u0442\u0438\u043d\u0433 \u043e\u0441\u043d\u043e\u0432\u0430\u043d \u043d\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 <a href=\"https:\/\/github.com\/nikic\/FastRoute\">FastRoute<\/a>, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0435\u043c\u0443 \u0431\u044b\u0442\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0448\u0443\u0441\u0442\u0440\u044b\u043c.<br \/>  \u0422\u044d\u0439\u043b\u043e\u0440 \u0437\u0430\u044f\u0432\u043b\u044f\u0435\u0442 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0431\u043e\u0301\u043b\u044c\u0448\u0443\u044e, \u0447\u0435\u043c \u0443 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 Slim, \u0438 \u0443\u0436 \u0435\u0449\u0435 \u0431\u043e\u0301\u043b\u044c\u0448\u0443\u044e, \u0447\u0435\u043c \u0443 Silex.<\/p>\n<p>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/2d5\/f6f\/1b8\/2d5f6f1b8ece4a9a8dd2e5bc59e490c7.png\"\/><\/p>\n<p>  \u0412\u043f\u0440\u043e\u0447\u0435\u043c, \u0442\u0440\u0435\u0442\u044c\u044f \u0432\u0435\u0440\u0441\u0438\u044f Slim, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0435\u0449\u0435 \u043d\u0435 \u0432\u044b\u0448\u043b\u0430, \u043d\u043e \u0443\u0436\u0435 \u043f\u043e\u0442\u0438\u0445\u043e\u043d\u044c\u043a\u0443 \u0433\u043e\u0442\u043e\u0432\u0438\u0442\u0441\u044f, \u0442\u0430\u043a\u0436\u0435 \u043f\u0438\u0448\u0435\u0442\u0441\u044f \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0435 FastRoute.<\/p>\n<p>  \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u043d \u0434\u043b\u044f \u043c\u0438\u043a\u0440\u043e\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432 \u043d\u0430 PHP:<\/p>\n<pre><code class=\"php\">$app-&gt;get('user\/{id}', function($id) {     return User::findOrFail($id); }); <\/code><\/pre>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b:<\/p>\n<pre><code class=\"php\">$app-&gt;get('user\/{id}', 'UserController@showProfile'); <\/code><\/pre>\n<p>  \u0411\u043e\u043b\u044c\u0448\u0435 \u043a\u043e\u0434\u0430 \u0432 <a href=\"http:\/\/lumen.laravel.com\/docs\/installation\">\u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 Lumen<\/a>.<\/p>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>  \u0427\u0442\u043e \u0436, \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u043c\u0438\u043a\u0440\u043e\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a? \u0422\u0430\u043a \u0442\u043e\u0447\u043d\u043e. \u041d\u043e \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u044e, \u043e\u043d \u043d\u0435 \u0437\u0430\u0442\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u0441\u0440\u0435\u0434\u0438 \u043c\u0430\u0441\u0441\u044b \u0434\u0440\u0443\u0433\u0438\u0445 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432 \u0438 \u0431\u0443\u0434\u0435\u0442 \u0432\u0435\u0441\u044c\u043c\u0430 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u043c. \u0423 \u0422\u044d\u0439\u043b\u043e\u0440\u0430 \u0435\u0441\u0442\u044c \u0432\u0441\u0435 \u043c\u043e\u0449\u043d\u043e\u0441\u0442\u0438, \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u044d\u0442\u043e\u0433\u043e. \u0415\u0441\u043b\u0438 \u043e\u043d <a href=\"https:\/\/twitter.com\/codeguy\/status\/587981499238117376\">\u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u043d\u0435\u0432\u0440\u0435\u0434\u0438\u043c<\/a>, \u043a\u043e\u043d\u0435\u0447\u043d\u043e. \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/255785\/\"> http:\/\/habrahabr.ru\/post\/255785\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p> \t\t\t<img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/701\/84f\/8bb\/70184f8bb99b4e1aa405171de7ffd408.jpg\"\/><\/p>\n<p>  \u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442!<\/p>\n<p>  \u0411\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043d\u0435\u0439 \u043d\u0430\u0437\u0430\u0434 Taylor Otwell, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0448\u0438\u0440\u043e\u043a\u043e \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0433\u043e \u0438, \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435, \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0433\u043e \u0432 \u0437\u0430\u043f\u0430\u0434\u043d\u043e\u043c \u043c\u0438\u0440\u0435 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 Laravel, \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0432 \u0441\u0432\u043e\u0435\u043c \u0442\u0432\u0438\u0442\u0442\u0435\u0440\u0435, \u0447\u0442\u043e \u043f\u043e\u043c\u0438\u043c\u043e Laravel \u043e\u043d \u0433\u043e\u0442\u043e\u0432\u0438\u0442 \u043a \u0432\u044b\u043f\u0443\u0441\u043a\u0443 \u043a\u043e\u0435-\u0447\u0442\u043e \u0435\u0449\u0435, \u0447\u0435\u043c, \u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u0437\u0430\u0438\u043d\u0442\u0440\u0438\u0433\u043e\u0432\u0430\u043b \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u043e\u0432.<\/p>\n<blockquote class=\"twitter-tweet\" lang=\"ru\">\n<p>What if Laravel 5.1 isn\u2019t the only framework I\u2019m preparing for release? <a href=\"http:\/\/t.co\/7oHVioDRYr\">http:\/\/t.co\/7oHVioDRYr<\/a><\/p>\n<p>&mdash; Taylor Otwell (@taylorotwell) <a href=\"https:\/\/twitter.com\/taylorotwell\/status\/585448606062088192\">7 \u0430\u043f\u0440\u0435\u043b\u044f 2015<\/a><\/p><\/blockquote>\n<p> <script async src=\"\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><br \/>  \u0414\u043e\u043b\u0433\u043e \u0436\u0434\u0430\u0442\u044c \u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c. \u0423\u0436\u0435 \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0434\u0435\u043b\u044e \u0431\u044b\u043b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d <a href=\"http:\/\/lumen.laravel.com\/\">Lumen<\/a>, \u043c\u0438\u043a\u0440\u043e\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 Laravel. \u041f\u043e\u0447\u0435\u043c\u0443 \u043e\u043d \u0442\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u2014 \u00abLumen\u00bb? \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432\u0441\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b Laravel, \u043a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e, \u043d\u043e\u0441\u044f\u0442 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 Illuminate.<\/p>\n<p>  \u0427\u0442\u043e \u0436\u0435 \u0441\u043e\u0431\u043e\u0439 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u044d\u0442\u043e\u0442 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a? \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-255260","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/255260","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=255260"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/255260\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=255260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=255260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=255260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}