sebdesign / artisan-cloudflare Goto Github PK
View Code? Open in Web Editor NEWLaravel artisan commands for CloudFlare
License: MIT License
Laravel artisan commands for CloudFlare
License: MIT License
I find that I cannot use X-Auth-Key when making a request and get a response of 6003: Invalid request headers
if I do. I played around and, if I replace it with Authorization
as the header key and Bearer [API TOKEN]
as the value, the request is successful with Cloudflare.
I Just wanted to add this in as an issue to see about getting it resolved. I can make a PR if needed
will it have a laravel 5.6 support any time soon?
In the docs you say that it's possible to purge everything if no zone is specified in the config
This is what I've done. I have no zone set, and when I try to run php artisan cloudflare:cache:purge
I get this error
Please supply a valid zone identifier in the input argument or the cloudflare config
What does this mean ?
i find this very useful for purging the cache, but wondering if you have any plans on adding commands for all of the other endpoints such as dns management?
will it work with laravel 8 too ?
@sebdesign, please consider reviewing this PR #24 to ensure compatibility of the package with Laravel 11. I've tested it, and all the tests pass, but it requires migrating the configuration with phpunit --migrate-configuration.
Thanks!
Hi there, love your package by the way, thanks for making it.
I've noticed that since upgrading to php 8.1 I get this warning
Return type of Sebdesign\ArtisanCloudflare\Zone::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /vendor/sebdesign/artisan-cloudflare/src/Zone.php on line 22
It's just a warning for now, but will probably become more of an issue in future version of PHP. It would be nice if you could resolve it.
Many thanks!
Hi! great work!
I just installed the last version of your plugin 1.2.0 in a dev environment with no problems, I tested and everything went ok, but after doing the same steps in the production server, same config, keys, zones, etc., when I try to do a cache:purge I see:
"In Purge.php line 221:
Undefined property: stdClass::$code"
The production server is a clone of the dev one, any idea what's happening? Thanks
When attempting to run the purge commands programmatically as part of a controller action using:
Artisan::call('cloudflare:cache:purge' );
I'm getting the following error:
PHP Error: Call to undefined method Symfony/Component/Console/Output/BufferedOutput::section() in [MY_PATH]/vendor/laravel/framework/src/Illuminate/Console/Concerns/InteractsWithIO.php on line 225
Commenting out line 88 in Purge.php:
$this->displayResults($zones, $results);
Prevents this error.
Would it be possible to get a flag we can set for a "silent" mode that would omit displaying results to sidestep this issue?
Hello! On a composer update
when running PHP 8, this is one of the packages which fails:
- sebdesign/artisan-cloudflare[v2.4.0, ..., v2.4.1] require php ^7.1 -> your php version (8.0.0) does not satisfy that requirement.
- Root composer.json requires sebdesign/artisan-cloudflare ^2.4 -> satisfiable by sebdesign/artisan-cloudflare[v2.4.0, v2.4.1].```
Hey Seb!
Thanks for your work, it works like a charm if it comes to adding the zone in the terminal after the command. However I'm trying to add a permanent zone to the config file but I keep getting the same error message: Please supply a valid zone identifier in the input argument or the cloudflare config.
Your example isn't working either from the file. It doesn't give any syntax error just the above. I have tried like:
'zones' => 'asd123asd123asd123asd123asd';
'zones' => [
'asd123asd123asd123asd123asd'
],
'zones' => [
'asd123asd123asd123asd123asd' => []
],
And also your example. Please help me (us) out a bit.
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.