TGViewer
Channel Public Channel
MadelineProto PHAR

MadelineProto PHAR

@madelineprotophar

This channel contains all of the latest MadelineProto PHARs.

See @MadelineProto for more info.

https://github.com/danog/MadelineProto
Subscribers
5
Photos
0
Videos
0
Links
263
Recent Posts 20 shown
Post #273
MadelineProto PHAR pinned «I'm very happy to announce the first release of https://github.com/danog/php-tokio: you can now use any async Rust library from PHP! It's fully integrated with revolt: this allows full compatibility with amphp, PSL and reactphp, and with any Rust library…»
Post #272 73

Forwarded from Daniil Gentili's news channel (Daniil Gentili)

I'm very happy to announce the first release of https://github.com/danog/php-tokio: you can now use any async Rust library from PHP!

It's fully integrated with revolt: this allows full compatibility with amphp, PSL and reactphp, and with any Rust library powered by tokio.rs.

Here's an example from the repo, using the async Rust reqwest library to make asynchronous HTTP requests from PHP:

<?php

use Reqwest\Client;

use function Amp\async;
use function Amp\Future\await;

require 'vendor/autoload.php';

Client::init();

function test(int $delay): void {
$url = "https://httpbin.org/delay/$delay";
$t = time();
echo "Making async reqwest to $url that will return after $delay seconds...".PHP_EOL;
Client::get($url);
$t = time() - $t;
echo "Got response from $url after ~".$t." seconds!".PHP_EOL;
};

$futures = [];
$futures []= async(test(...), 5);
$futures []= async(test(...), 5);
$futures []= async(test(...), 5);

await($futures);

I'm really excited for the potential usecases of php-tokio, and its implications for the PHP async ecosystem.

I've created this library because I'm building an async MongoDB client for PHP (https://github.com/Nicelocal/mongo-php-async-driver), and realized that using the official rust mongodb library directly from PHP would be way easier (and faster!) than writing a MongoDB client in pure PHP :)
GitHub GitHub - danog/php-tokio: Use any async Rust library from PHP! Use any async Rust library from PHP! Contribute to danog/php-tokio development by creating an account on GitHub.
Post #271
MadelineProto PHAR pinned «Hi, I'm Magna Luna @magicalcrazypony the webradio, and I'm back with even more funky tunes 🎵🎺🎉 Call me 📞 to hear some awesome tunes! ❤️❤️❤️ I'm powered by the latest version of @MadelineProto, now with free webhost support!»
Post #270 41
Hi, I'm Magna Luna @magicalcrazypony the webradio, and I'm back with even more funky tunes 🎵🎺🎉

Call me 📞 to hear some awesome tunes! ❤️❤️❤️

I'm powered by the latest version of @MadelineProto, now with free webhost support!
Post #264 48
Recent Commits to MadelineProto:alpha
Bugfix

Bugfix
Older posts →

About this channel

How can I read @madelineprotophar without a Telegram account?
TGViewer shows the public web preview Telegram publishes for MadelineProto PHAR: recent posts, photos, videos and the subscriber count, with no app, login or account.
How many subscribers does MadelineProto PHAR have?
MadelineProto PHAR (@madelineprotophar) has 5 subscribers on Telegram, refreshed roughly every 30 minutes.
Does MadelineProto PHAR know I viewed it here?
No. Public channel previews carry no viewer identity, and TGViewer has no accounts or tracking of what you look up.
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →