This channel contains all of the latest MadelineProto PHARs.
See @MadelineProto for more info.
https://github.com/danog/MadelineProto
Channel Public Channel
MadelineProto PHAR
@madelineprotophar
- Subscribers
- 5
- Photos
- 0
- Videos
- 0
- Links
- 263
Recent Posts 20 shown
Post #274
19
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:
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 :)
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:
<?phpI'm really excited for the potential usecases of php-tokio, and its implications for the PHP async ecosystem.
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'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 :)
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!
Call me 📞 to hear some awesome tunes! ❤️❤️❤️
I'm powered by the latest version of @MadelineProto, now with free webhost support!
Post #269
73
Recent Commits to MadelineProto:master
Do not even try using parallel processing if not running in CLI
Do not even try using parallel processing if not running in CLI
Do not even try using parallel processing if not running in CLI
Do not even try using parallel processing if not running in CLI
Post #268
71
Post #267
67
Post #266
63
Post #265
61
Recent Commits to MadelineProto:alpha
Merge branch 'alpha' of https://github.com/danog/MadelineProto into alpha
Merge branch 'alpha' of https://github.com/danog/MadelineProto into alpha
Merge branch 'alpha' of https://github.com/danog/MadelineProto into alpha
Merge branch 'alpha' of https://github.com/danog/MadelineProto into alpha
Post #264
48
Post #263
47
Post #262
45
Post #261
46
Recent Commits to MadelineProto:alpha
Async combined event handler and APIFactory fixes
Async combined event handler and APIFactory fixes
Async combined event handler and APIFactory fixes
Async combined event handler and APIFactory fixes
Post #260
42
Post #259
47
Recent Commits to MadelineProto:alpha
Trim final newlines while converting parse mode
Trim final newlines while converting parse mode
Trim final newlines while converting parse mode
Trim final newlines while converting parse mode
Post #258
44
Post #257
40
Post #256
34
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.