<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/9hw5reevq" -->

---
title: PHP to Rust via Copilot | daily.dev
description: A developer shares their experience using GitHub Copilot to convert a PHP Laravel Artisan command into Rust code. The original PHP code scraped TikTok for live...
canonical: https://daily.dev/posts/9hw5reevq
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: PHP to Rust via Copilot | daily.dev
og:description: A developer shares their experience using GitHub Copilot to convert a PHP Laravel Artisan command into Rust code. The original PHP code scraped TikTok for live...
og:url: https://daily.dev/posts/9hw5reevq
og:image: https://api.daily.dev/og/posts/9hW5Reevq.png
og:image:alt: Post cover image
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# PHP to Rust via Copilot

**[PHP Dev](https://daily.dev/sources/phpdev)** · [@damienseguy](https://daily.dev/damienseguy) · 7 upvotes · 0 comments

## Summary

A developer shares their experience using GitHub Copilot to convert a PHP Laravel Artisan command into Rust code. The original PHP code scraped TikTok for live stream data and sent Discord alerts. Copilot successfully generated equivalent Rust code using reqwest and scraper crates, though it initially missed the json feature dependency. After a follow-up prompt, Copilot provided instructions to fix the Cargo.toml configuration, and the code compiled and ran successfully. The author found this AI-assisted approach valuable for learning Rust while leveraging existing PHP knowledge.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://joeferguson.me/php-to-rust-via-copilot/>

## Similar posts on daily.dev

- [Porting 100k lines from TypeScript to Rust using Claude Code in a month](https://daily.dev/posts/porting-100k-lines-from-typescript-to-rust-using-claude-code-in-a-month-a8lwkelwv) · Hacker News · 1 upvotes · 0 comments

---

Tags: [#ai-coding](https://daily.dev/tags/ai-coding), [#github](https://daily.dev/tags/github), [#laravel](https://daily.dev/tags/laravel), [#php](https://daily.dev/tags/php), [#rust](https://daily.dev/tags/rust)

[View this post on daily.dev](https://daily.dev/posts/9hw5reevq)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/9hw5reevq","headline":"PHP to Rust via Copilot","text":"Shared: PHP to Rust via Copilot","url":"https://daily.dev/posts/9hw5reevq","datePublished":"2026-01-11T09:46:05.446Z","dateModified":"2026-03-15T08:05:59.483Z","author":{"@type":"Person","name":"Damien seguy","url":"https://daily.dev/damienseguy","image":"https://media.daily.dev/image/upload/s--nPbjKqol--/f_auto,q_auto/v1698422671/avatars/avatar_G85JhYcDxAg024Omc8Rlp","description":"PHP developer passionate about deep language knowledge, testing, static analysis, and sustainable it","worksFor":{"@type":"Organization","name":"Exakat","logo":"https://media.daily.dev/image/upload/s--ibtl6fze--/f_auto/v1749051132/companies/exakat"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":42330}},"image":"https://media.daily.dev/image/upload/s--ZrL_HSsR--/f_auto/v1722860399/public/Placeholder%2006","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":7},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"sharedContent":{"@type":"WebPage","url":"https://api.daily.dev/r/8pYkRpZW9"},"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/phpdev","name":"PHP Dev"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"PHP Dev","item":"https://daily.dev/squads/phpdev"},{"@type":"ListItem","position":3,"name":"PHP to Rust via Copilot"}]}
```

