<
4B83
script type="application/json" data-target="react-app.embeddedData">{"payload":{"allShortcutsEnabled":false,"path":"php","repo":{"id":30757000,"defaultBranch":"master","name":"rabbitmq-tutorials","ownerLogin":"pavanIntel","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2015-02-13T13:16:11.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/7080735?v=4","public":true,"private":false,"isOrgOwned":false},"currentUser":null,"refInfo":{"name":"dotnet","listCacheKey":"v0:1615739919.2818701","canEdit":false,"refType":"branch","currentOid":"5b42d5a94629fa57378b41a9ada54f61f5852430"},"tree":{"items":[{"name":"README.md","path":"php/README.md","contentType":"file"},{"name":"emit_log.php","path":"php/emit_log.php","contentType":"file"},{"name":"new_task.php","path":"php/new_task.php","contentType":"file"},{"name":"receive.php","path":"php/receive.php","contentType":"file"},{"name":"receive_logs.php","path":"php/receive_logs.php","contentType":"file"},{"name":"send.php","path":"php/send.php","contentType":"file"},{"name":"worker.php","path":"php/worker.php","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":{"displayName":"README.md","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003ePHP code for RabbitMQ tutorial\u003c/h1\u003e\u003ca id=\"user-content-php-code-for-rabbitmq-tutorial\" class=\"anchor\" aria-label=\"Permalink: PHP code for RabbitMQ tutorial\" href=\"#php-code-for-rabbitmq-tutorial\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eHere you can find a PHP code examples from \u003ca href=\"http://www.rabbitmq.com/getstarted.html\" rel=\"nofollow\"\u003eRabbitMQ\ntutorials\u003c/a\u003e.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eRequirements\u003c/h2\u003e\u003ca id=\"user-content-requirements\" class=\"anchor\" aria-label=\"Permalink: Requirements\" href=\"#requirements\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eTo run the examples you need a running RabbitMQ server.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eAdditionaly you need \u003ccode\u003ePHP 5.3\u003c/code\u003e and \u003ccode\u003ephp-amqplib\u003c/code\u003e. To get these\ndependencies on Ubuntu type:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"sudo apt-get install git-core php5-cli\ngit clone http://github.com/tnc/php-amqplib.git lib/php-amqplib\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003esudo apt-get install git-core php5-cli\ngit clone http://github.com/tnc/php-amqplib.git lib/php-amqplib\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eCode\u003c/h2\u003e\u003ca id=\"user-content-code\" class=\"anchor\" aria-label=\"Permalink: Code\" href=\"#code\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"http://www.rabbitmq.com/tutorial-one-python.html\" rel=\"nofollow\"\u003eTutorial one: \"Hello World!\"\u003c/a\u003e:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"php send.php\nphp receive.php\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003ephp send.php\nphp receive.php\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"http://www.rabbitmq.com/tutorial-two-python.html\" rel=\"nofollow\"\u003eTutorial two: Work Queues\u003c/a\u003e:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"php new_task.php\nphp worker.php\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003ephp new_task.php\nphp worker.php\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"http://www.rabbitmq.com/tutorial-three-python.html\" rel=\"nofollow\"\u003eTutorial three: Publish/Subscribe\u003c/a\u003e\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"php receive_logs.php\nphp emit_log.php\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003ephp receive_logs.php\nphp emit_log.php\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003c/article\u003e","errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"PHP code for RabbitMQ tutorial","anchor":"php-code-for-rabbitmq-tutorial","htmlText":"PHP code for RabbitMQ tutorial"},{"level":2,"text":"Requirements","anchor":"requirements","htmlText":"Requirements"},{"level":2,"text":"Code","anchor":"code","htmlText":"Code"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2FpavanIntel%2Frabbitmq-tutorials%2Ftree%2Fdotnet%2Fphp"}},"totalCount":7,"showBranchInfobar":true},"fileTree":{"":{"items":[{"name":"dotnet","path":"dotnet","contentType":"directory"},{"name":"java","path":"java","contentType":"directory"},{"name":"php","path":"php","contentType":"directory"},{"name":"python","path":"python","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"}],"totalCount":6}},"fileTreeProcessingTime":6.193602,"foldersToFetch":[],"treeExpanded":true,"symbolsExpanded":false,"csrf_tokens":{"/pavanIntel/rabbitmq-tutorials/branches":{"post":"pThIm9pwnDMtMYuuqTIX2ji9BTMt0aef1YBqRtO9AhC30TBgBS9VAd0YEoVTuhKZVSYSja3dfGRwsjaPErlNxg"},"/pavanIntel/rabbitmq-tutorials/branches/fetch_and_merge/dotnet":{"post":"g3M4VLqIkUBrIW7g92ovZrpapSWwpJajcTXA5iyqAfdks9NPJCpXckjZdohSpC5QexLBzMHl040yDXMsJ8xwhg"},"/pavanIntel/rabbitmq-tutorials/branches/fetch_and_merge/dotnet?discard_changes=true":{"post":"5QV8kpbeODJrm5iieABNEQyPmGSpeJWn7snUsXtbfdUCxZeJCHz-AEhjgMrdzkwnzcf8jdg50Imt8Wd7cD0MpA"}}},"title":"rabbitmq-tutorials/php at dotnet · pavanIntel/rabbitmq-tutorials","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-263cab1760dd.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1b17b3e7786a.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true}}}
You can’t perform that action at this time.