# PHP-Tokio - Async Rust 라이브러리를 PHP에서 사용하기

> Clean Markdown view of GeekNews topic #10596. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=10596](https://news.hada.io/topic?id=10596)
- GeekNews Markdown: [https://news.hada.io/topic/10596.md](https://news.hada.io/topic/10596.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2023-08-29T10:47:01+09:00
- Updated: 2023-08-29T10:47:01+09:00
- Original source: [github.com/danog](https://github.com/danog/php-tokio)
- Points: 6
- Comments: 5

## Topic Body

- PHP에서 모든 Async Rust 라이브러리를 호출 가능하게 해주는 오픈소스 라이브러리   
- Revolt(Concurrent PHP용 이벤트루프)와 완전히 연동  
  - 이를 통해서 AMPHP(Asynchronous Multitasking PHP), PSL(PHP Standard Library), ReactPHP 와 완벽 호환 가능

## Comments



### Comment 18704

- Author: galadbran
- Created: 2023-08-29T16:57:13+09:00
- Points: 1

https://news.hada.io/topic?id=10027 요런 것과 같이 쓰면 좋을 것 같네용

### Comment 18697

- Author: hided62
- Created: 2023-08-29T14:05:12+09:00
- Points: 1

FFI라고 부르기엔 허접하고, Wrapper 수준 정도로 쓰는게 PHP Module 구조다보니, 오히려 이럴때에는 장점이 되네요.  
  
-d extension= 으로 모듈을 직접 지정하는게 참으로 불편해보이는데, 이것까지 관리해줄 녀석이 과연 나올런지..

### Comment 18732

- Author: okkorea
- Created: 2023-08-30T10:51:31+09:00
- Points: 1
- Parent comment: 18697
- Depth: 1

-d extension 옵션없이 php ini 에 전역으로 등록하고 쓰는방법이 있죠  
FFI 는 php7.4 부터 도입되긴했는데 저건 FFI 로 로딩하지 않네요

### Comment 18696

- Author: kuroneko
- Created: 2023-08-29T13:56:36+09:00
- Points: 1

PHP 붐은 온다...

### Comment 18683

- Author: jjpark78
- Created: 2023-08-29T10:57:41+09:00
- Points: 1

PHP 망한다고 그랬는데.. 정말 대단..
