Giter Club home page Giter Club logo

php-sdk's People

Contributors

alda-optimizely avatar aliabbasrizvi avatar caitlinrubin-optimizely avatar cleentfaar avatar dcloues avatar drieschel avatar elliotykim avatar fayyazarshad avatar jaeopt avatar juancarlostong avatar mat001 avatar mauerbac avatar mfahadahmed avatar mikechu-optimizely avatar mikeproeng37 avatar mnoman09 avatar msohailhussain avatar nchilada avatar oakbani avatar onufryk avatar ozayr-zaviar avatar rafinutshaw-optimizely avatar rashidsp avatar samybasset avatar shaharyar123 avatar spea avatar wangjoshuah avatar yasirfolio3 avatar yuanc avatar zashraf1985 avatar

Stargazers

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

Watchers

 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

php-sdk's Issues

PHP 7.4 support (upgrade monolog, dependencies)

Hi there ๐Ÿ™‹โ€โ™‚

Tests seems to fail on PHP 7.4, 7.3 still fine though.

Another problem that I don't know is that if this package will upgrade its dependencies like Monolog, because I'm writing a wrapper/integration with Laravel for one of my projects so it requires monolog 2.x from Laravel and so it has dependencies conflicts (specially with monolog)

monolog version

Hey there,

do we really need to fix monolog/monolog to a specific version? As of right now the sdk requires version 1.21.0 and I would be surprised if something like ^1.21.0 doesn't work as well.

Best,
Daniel

Undefined Method on GuzzleHttp\Client When Using v5.3

Hi guys,

We're using the Optimizely PHP SDK at Patientco and it looks like we ran into an issue the other day.

Some quick background:
We've been running the Optimizely SDK for a few months now with no problems. This afternoon we rolled out another PHP package via Composer that required Guzzle 5.3 and we started noticing some PHP Fatal Errors coming from the Optimizely package. It looks like the versioning in your composer.json allow it to use either Guzzle 5.3 or 6.2, but the SDK isn't actually compatible with 5.3 because it calls a function on the \GuzzleHttp\Client class that only exists in 6.2.

The error:
PHP message: PHP Fatal error: Call to undefined method GuzzleHttp\Client::request() in [application path]/vendor/optimizely/optimizely-sdk/src/Optimizely/Event/Dispatcher/DefaultEventDispatcher.php on line 53

We're going to try to roll the other package up to 6.2 as a workaround in the meantime, but if you could take a look that would be great. For reference, we are currently on Guzzle v5.3.1 and Optimizely v1.3.0. Thanks!

Wrong phpdocs for method `lookup` in interface UserProfileServiceInterface

The bug reported ๐Ÿ›

There is a typo in phpdocs here:

https://github.com/optimizely/php-sdk/blame/master/src/Optimizely/UserProfile/UserProfileServiceInterface.php#L26

Because there is no class with name userProfile.
Seems like intention was to specify UserProfile or array instead.

Background

In some case insensitive file systems, like MacOS APFS (default). It's impossible to have userProfile.php and UserProfile.php in same directory. Meanwhile in case sensitive file systems it's possible.

In my use case specifying return type hint as userProfile (by sdk) is causing issues when trying to add ignore configuration to ignoreErrors in phpstan-baseline.neon. During the execution of phpstan on each filesystem, the error list is different - because of case insensitivity and type specified in phpdocs.

Custom logger ignored by constructor / errors appear in output

Optimizely::__construct() allows us to pass a logger that will be used to log any errors detected by the SDK.

That's great but for some strange reason the constructor overrides the logger with it's own DefaultLogger whenever a validation/connection error occurs; making the custom logger completely useless.

To make matters worse, the DefaultLogger uses the standard php://output stream to send it's messages, causing every site to leak error messages to it's users whenever a connection issue occurs (e.g. the outage last week).

Unable to install using composer

composer unable to pickup and install php-sdk due to the error below.

First Attempt:

โžœ registration git:(develop) โœ— composer require optimizely/optimizely-sdk:1.5.0
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- The requested package optimizely/optimizely-sdk could not be found in any version, there may be a typo in the package name.

Potential causes:

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

Installation failed, reverting ./composer.json to its original content.

Second Attempt:
โžœ registration git:(develop) โœ— composer require optimizely/optimizely-sdk

[InvalidArgumentException]
Could not find package optimizely/optimizely-sdk at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability

require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] []...

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.