Giter VIP home page Giter VIP logo

artisan-cloudflare's People

Contributors

ctf0 avatar laravel-shift avatar oscar-ol avatar pelmered avatar sebdesign avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

artisan-cloudflare's Issues

Undefined property: stdClass::$code

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

Unable to set static zone in cloudflare.php

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.

Unresolvable dependency resolving

hello!! I got the above error when used in conjunction with task scheduling.

Unresolvable dependency resolving [Parameter #0 [ <required> array $zones ]] in class App\Console\Commands\Purge

image

10000: Authentication error

I have an Authentication error, even though I have filled in the information in the config/cloudflare file.
Screenshot 2020-12-09 000639

hi

will it work with laravel 8 too ?

Return type of Sebdesign\ArtisanCloudflare\Zone::jsonSerialize() -> php 8.1 warning

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!

PHP 8 Support

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].```

Laravel 11

@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!

Output error when running commands programmatically

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?

planning on adding other commands?

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?

Authentication Header Error

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

throws error if no zone specified

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 ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.