googleapis / common-protos-php Goto Github PK
View Code? Open in Web Editor NEWPHP protocol buffer classes generated from https://github.com/googleapis/api-common-protos
License: Apache License 2.0
PHP protocol buffer classes generated from https://github.com/googleapis/api-common-protos
License: Apache License 2.0
This would likely be a good candidate for an owlbot job.
Policy Bot found one or more issues with this repository.
there are no classes for https://github.com/googleapis/googleapis/blob/master/google/type/decimal.proto type
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.
composer.json
google/protobuf ^3.6.1
phpunit/phpunit ^4.8.36||^8.5
sami/sami *
.github/workflows/docs.yml
actions/checkout v3
nick-invision/retry v2
php 7.4-cli
.github/workflows/tests.yml
actions/checkout v3
codecov/codecov-action v3
shivammathur/setup-php v2
nick-invision/retry v2
This repository does not seem to have master branch
protection enabled, at least in the way I'm expecting.
I was hoping for:
- master branch protection
- requiring at least one code reviewer
- requiring at least two status checks
- enforcing rules for admins
Please turn it on!
Hi,
I've been struggling today with a really weird issue. I think I narrowed it down to this repository, but if it is not applicable here, please let me know.
I've been trying to use the RecaptchaEnterprise package, however when I try to use it, I get the following error:
Class "GPBMetadata\Google\Cloud\Recaptchaenterprise\V1\Recaptchaenterprise" not found
"file":
"/var/www/html/vendor/google/cloud-recaptcha-enterprise/src/V1/Event.php:179",
Which is thrown when this line of code is executed:
$event = new \Google\Cloud\RecaptchaEnterprise\V1\Event(['']);
I debugged this further, making sure everything is installed. The strange thing is that Composer correctly loads the class (ClassLoader::loadClass
does not return an error), but class_exists()
that returns false
As an experiment I copied the Recaptchaenterprise class to my own code, and aliased it, but then the error message went one step down:
\"GPBMetadata\\Google\\Api\\Http\" not found",
"/var/www/html/vendor/google/common-protos/metadata/Api/Annotations.php:17",
I then made a script that only includes the autoloader, and only calls class_exists
. No code should be executed would be my thought.
<?php
require \dirname(__DIR__).DIRECTORY_SEPARATOR.'vendor'.DIRECTORY_SEPARATOR.'autoload.php';
$classes = [
'GPBMetadata\Google\Cloud\Recaptchaenterprise\V1\Recaptchaenterprise',
'GPBMetadata\Google\Api\FieldBehavior',
'GPBMetadata\Google\Api\Http',
'GPBMetadata\Google\Api\Backend',
'GPBMetadata\Google\Type\Latlng'
];
foreach ($classes as $class) {
echo $class. ' ' . var_export(class_exists($class), true).PHP_EOL;
}
But the output of this script contains a bunch weird characters.. some kind of encoding issue?
$ php test.php
㰿灨瀊⌠䝥湥牡瑥搠批⁴桥⁰牯瑯捯氠扵晦敲䵥瑡 ... etc
But where does this output come from? I'm only calling class_exists?
For every class where class_exists
returns false, this weird output is there. Some classes from this repo are correctly loaded. It seems that most classes in Api
fail, but for example classes in Type
, like GPBMetadata\Google\Type\Latlng
succeed.
If I manually call include dirname(__DIR__).'/vendor/google/common-protos/metadata/Api/Http.php';
, I get the same weird output, so it seems that simply the act of including one of these files generates some output.
Any help here? I have no idea what is causing this. I have not found any similar issues in any of the repo's. I'd have to guess it would some configuration issue, perhaps in my php.ini but I have no idea what.
Versions:
google/cloud-recaptcha-enterprise
1.8.1google/common-protos
4.5.0Will you accept a PR which excludes dev/
and tests/
from distribution via .gitattributes
? See https://php.watch/articles/composer-gitattributes for more information on excluding files.
Are there any other files / directories which should not be distributed?
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.