donohoe / bluesky Goto Github PK
View Code? Open in Web Editor NEWA basic and simple client for posting to Bluesky
A basic and simple client for posting to Bluesky
I'm now running PHP 8.2 and these warnings popup when I post to Bluesky :
[20-Oct-2023 13:14:00 America/Vancouver] PHP Deprecated: Creation of dynamic property Bluesky::$account_file is deprecated in /example.com/httpdocs/includes/bluesky/bluesky.php on line 23
[20-Oct-2023 13:14:00 America/Vancouver] PHP Deprecated: Creation of dynamic property Bluesky::$debug is deprecated in /example.com/httpdocs/includes/bluesky/bluesky.php on line 16
[20-Oct-2023 13:14:00 America/Vancouver] PHP Deprecated: Creation of dynamic property Bluesky::$account is deprecated in /example.com/httpdocs/includes/bluesky/bluesky.php on line 17
[20-Oct-2023 13:14:00 America/Vancouver] PHP Deprecated: Creation of dynamic property Bluesky::$credentials is deprecated in /example.com/httpdocs/includes/bluesky/bluesky.php on line 18
First of all, thank you for making this. This will save me a lot of time!
At first glance, it doesn't appear the function "setAccount" is called from anywhere in your script. Maybe I'm wrong?
As for protecting your account information, something simple like this should work (not tested) :
bluesky.php :
private function getAccount() {
$account = array();
if (file_exists($this->account_file )) {
include_once($this->account_file);
}
return $account;
}
account.php :
$account['bluesky_identifier'] = 'donohoe.dev';
$account['bluesky_domain'] = 'https://bsky.social/';
$account['bluesky_password'] = 'GENERATE AN APP PASSWORD, DONT USE *ACTUAL* PASSWORD';
Keep up the good work!
However it does work fine with post-link-embed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.