Coder Social home page Coder Social logo

paypal-php-sdk's Introduction

Deprecation Notice:

This SDK is deprecated. You can continue to use it, but no new features or support requests will be accepted. For alternatives, please visit the current SDK homepage on the PayPal Developer Portal

REST API SDK for PHP

Home Image

Build Status Coverage Status

Welcome to PayPal PHP SDK. This repository contains PayPal's PHP SDK and samples for REST API.

Direct Credit Card Support

Important: The PayPal REST API no longer supports new direct credit card integrations. Please instead consider Braintree Direct; which is, PayPal's preferred integration solution for accepting direct credit card payments in your mobile app or website. Braintree, a PayPal service, is the easiest way to accept credit cards, PayPal, and many other payment methods.

Please Note

The Payment Card Industry (PCI) Council has mandated that early versions of TLS be retired from service. All organizations that handle credit card information are required to comply with this standard. As part of this obligation, PayPal is updating its services to require TLS 1.2 for all HTTPS connections. At this time, PayPal will also require HTTP/1.1 for all connections. Click here for more information

Connections to the sandbox environment use only TLS 1.2.

SDK Documentation

Our PayPal-PHP-SDK Page includes all the documentation related to PHP SDK. Everything from SDK Wiki, to Sample Codes, to Releases. Here are few quick links to get you there faster.

Latest Updates

  • SDK now allows injecting your logger implementation. Please read documentation for more details.
  • If you are running into SSL Connect Error talking to sandbox or live, please update your SDK to latest version or, follow instructions as shown here
  • Checkout the latest 1.0.0 release. Here are all the breaking Changes in v1.0.0 if you are migrating from older versions.
  • Now we have a Github Page, that helps you find all helpful resources building applications using PayPal-PHP-SDK.

PayPal Checkout v2

Please note that if you are integrating with PayPal Checkout, this SDK and corresponding API v1/payments are in the process of being deprecated.

We recommend that you integrate with API v2/checkout/orders and v2/payments. Please refer to the Checkout PHP SDK to continue with the integration.

2.0 Release Candidate!

We're releasing a brand new version of our SDK! 2.0 is currently at release candidate status, and represents a full refactor, with the goal of making all of our APIs extremely easy to use. 2.0 includes all of the existing APIs (except payouts), and includes the new Orders API (Disputes and Marketplace coming soon). Check out the FAQ and migration guide, and let us know if you have any suggestions or issues!

Prerequisites

License

Read License for more licensing information.

Contributing

Read here for more information.

More help

paypal-php-sdk's People

Contributors

ahmad-saad avatar avidas avatar aydiv avatar bigwhoop avatar bluk avatar braebot avatar braintreeps avatar brunoric avatar carusogabriel avatar coosos avatar diemuzi avatar ganeshx avatar hakito avatar irfanevrens avatar jaypatel512 avatar josephting avatar lastdragon-ru avatar lathavairamani avatar lvairamani avatar nyholm avatar ojtibi avatar prakash-gangadharan avatar prannamalai avatar richardpq avatar ricog avatar sankarbhavanib avatar siddick avatar sundbry avatar ultimatedion avatar xiaoleih41 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

Watchers

 avatar  avatar  avatar

paypal-php-sdk's Issues

Bugs

I try to complet a payment whit a paypal account, but i have tow problem can't fix.

The first is : when i try to set a description and price to the payment, this info dosen't show on Your order summary.

The second is : The state of payment stay as created.

I use the restful api whit the php class i get form your git account.
github.com/paypal/rest-api-sdk-php

Thank for you help.

Francis !

Automatic Approval of Payment

Hi!

I have a question regarding the PayPal REST API.
We need three steps to process a payment in PayPal:

1.Creating a payment with payment_method set to PayPal (payment state is 'created' at this point).
2.Getting buyer approval by redirecting to PayPal website (payment state is 'approved' at this point).
3.Calling ExecutePayment to complete the payment. (payment state is 'completed' at this point).

In step 2, we have to redirect to the PayPal page, login and approve manually, after that it will return payer_id and payment_id for the 3rd step.

I am writing to consult, whether there is a way to automatically approve the payment in step 2, and let it return the payer_id and payment_id automatically?

I found there is a code example in API doc with directly result in "approved" but the payment method is "credit card" instead of "paypal", so I really need to find a solution when we use "paypal" as payment method.

Thank you very much!

Best regards
Hainan

sample bootstrap mentions non-existent function: PayPal\Rest\ApiContext::setConfig()

// ### Api Context
// Pass in a `PayPal\Rest\ApiContext` object to authenticate 
// the call. You can also send a unique request id 
// (that ensures idempotency). The SDK generates
// a request id if you do not pass one explicitly. 
$apiContext = new ApiContext(new OAuthTokenCredential(
        'EBWKjlELKMYqRNQ6sYvFo64FtaRLRR5BdHEESmha49TM',
        'EO422dn3gQLgDbuwqTjzrFgFtaRLRR5BdHEESmha49TM'));
// Uncomment this step if you want to use per request 
// dynamic configuration instead of using sdk_config.ini
/*
$apiContext->setConfig(array(
    'mode' => 'sandbox',
    'http.ConnectionTimeOut' => 30,
    'log.LogEnabled' => true,
    'log.FileName' => '../PayPal.log',
    'log.LogLevel' => 'FINE'
));
*/

When you uncomment the setConfig() function below the comment that reads "Uncomment this step if you want to use per request dynamic configuration instead of using sdk_config.ini"

An error is thrown:

Fatal error: Call to undefined method PayPal\Rest\ApiContext::setConfig()

Is there no way to set the configuration outside of the .ini file?

Missing argument 2 for PPConnectionManager

I'm getting the following error:

Warning: Missing argument 2 for PPConnectionManager::getConnection(), called in /vendor/paypal/rest-api-sdk-php/lib/PayPal/Auth/OAuthTokenCredential.php on line 91 and defined in /vendor/paypal/sdk-core-php/lib/PPConnectionManager.php on line 24

I've tried all the samples, but they all return at least the error above.

Saved Card Payments Sandbox broken

I first noticed this problem 21 March 2014. Essentially after an all-nighter i've traced down the problem to stored credit cards.
Obviously, I can't push any code live if we can't test this on Sandbox

Even your own "integration" walk through seems to be failing. Step 3/4 produces an internal server error:
https://devtools-paypal.com/guide/pay_savedcard/php

my php code and error:
/**
Code straight from the guide.
*/
$apiContext = new ApiContext(new OAuthTokenCredential(PAYPAL_KEY, PAYPAL_SECRET));
$apiContext->setConfig(
array(
'mode' => 'live',
)
);
$card = new CreditCard();
$card->setType("visa");
$card->setNumber("4446283280247004");
$card->setExpire_month("11");
$card->setExpire_year("2018");
$card->setFirst_name("Joe");
$card->setLast_name("Shopper");

    $card->create($apiContext);
    $card = (array)$card;
    $keys = array_keys($card);
    $card = $card[$keys[0]];

    $creditCardId = $card['id'];
    $creditCardToken = new CreditCardToken();
    $creditCardToken->setCredit_card_id($creditCardId);

    $fundingInstrument = new FundingInstrument();
    $fundingInstrument->setCredit_card_token($creditCardToken);

    $payer = new Payer();
    $payer->setPayment_method("credit_card");
    $payer->setFunding_instruments(array($fundingInstrument));

    $amount = new Amount();
    $amount->setCurrency("USD");
    $amount->setTotal("12");

    $transaction = new Transaction();
    $transaction->setAmount($amount);
    $transaction->setDescription("creating a payment with saved credit card");

    $payment = new Payment();
    $payment->setIntent("sale");
    $payment->setPayer($payer);
    $payment->setTransactions(array($transaction));

    $payment->create($apiContext);

/**
Code Hangs, sometimes producing the following exception:
*/
exception 'PayPal\Exception\PPConnectionException' with message 'Got Http response code 500 when accessing https://api.sandbox.paypal.com/v1/payments/payment.' in ~/vendor/paypal/sdk-core-php/lib/PayPal/Core/PPHttpConnection.php:114

Please add how to handle `pending` state of a payment on success URL

Please add to the samples how to handle this status.
When paypal redirect the user to the SUCCESS url you receive a payment in a "created" status, when you execute that payment you are creating a NEW payment and here you can obtain the "pending" state.
I'm not able to find in docs or stackoverflow relevant information on how to handle this situation.

Missing data on documentation building the billing_address object

If you are saving a credit card without a state on the billing_address object is not gonna work but if you build an billing_address object to made a payment it's works, the problem is the documentation doesn't say that the field billing_address is mandatory when your trying to store a credit card but not when you are doing a payment.

Basically this is the error you'll see when trying to store a credit card

VALIDATION_ERROR billing_address.state Must not be blank

Address Object for Payments

Recurring Profiles

Is the goal for the REST API to ultimately handle everything that can be done through the classic APIs, such as recurring billing profiles, etc? It's not clear to me what direction PayPal is going with this, and whether it's worth the development time to begin using the REST API for situations it can handle, with the hope of deprecating the classic APIs.

Any information you can provide would be great!

Newbie question

Hi, I'm trying to configure the sdk

First step: Copy the composer.json file from the sample folder over to your project and run 'composer update --no-dev' to fetch all dependencies.

As far as I'm concern, .json is not an executable. where am I supposed to "RUN" this line?
Thanks in advance

Getting: 'undefined id' on PaymentExecution execute()

When trying to execute the Payment :

$payerId = Input::get('PayerID');
$payment = new Payment($paymentId);
$execution = (new PaymentExecution)->setPayer_id($payerId);
// Fails (with fine apiContext)
$payment->execute($execution, $apiContext); 

I get :

ErrorException Object {
    protected message: "Undefined index: id", 
    protected code: 8, 
    protected file: "/www/apkf/app/vendor/paypal/sdk-core-php/lib/PayPal/Common/PPModel.php", 
    protected line: 14,
    protected severity: 0
} 

Dashboard shows Payments staying on "Create" state.

What am I doing wrong ?

Payer shipping information before payment execution

Is there a way to get payers shipping information in express checkout before execution of payment, I want to do some checking before executing the payment but I couldn't any information how to get payer info.

Crashing when trying to execute samples

When triying to execute the samples the system keeps crashing with:
Fatal error: Class 'PayPal\Rest\ApiContext' not found in the bootstrap.php

By now i have no clue what happens here.

Maybe someone knows this issue?

sdk_config.ini cleanup

I just implemented the rest api into my php project and recognized that the ini file needs a cleanup.

mode=sandbox ; can be set to sandbox / live

seems me no longer needed. But I had to add the line

service.EndPoint = https://api.sandbox.paypal.com

to bring the rest api to work. Hope I'm assuming this correctly.

Sample script CreatePaymant not catching errors:

If the connection manager get an http error it is not being caught:

/sample/payments/CreatePayment.php

Line 90:
IS:
} catch (\PPConnectionException $ex) {

SHOULD BE:
} catch (PayPal\Exception\PPConnectionException $ex) {

Will be possible to use the Paypal RestFul API to process a payment with a Maestro credit card?

On the Paypal RestFul API documentation only mention four kind of credit card visa, mastercard, discover, amex.

Will be possible to use a maestro credit card instead of that one with gbp as currency instead of usd?

I just made a simple test using Dev Tools HATEOAS and Dev Tools Pay Credit Card and it seems that is working.

Any have try it other kind of credit card different from the mentioned above (visa, mastercard, discover, amex)?

Thanks

Recurring payments

Would it be possible to integrate recurring payments in this library?

Payment.php: create returns $this, execute returns $ret

Not sure if this is intended like that. I noticed that

public function create($apiContext = null) 

returns

$this

whereas

public function execute($paymentExecution, $apiContext = null)

returns

$ret

This means that I can use create like so:

$payment = new Payment();
$payment->create();

resulting in an updated payment object.

In the case of execute I have to:

$payment = $payment->execute();

otherwise my payment object is not getting updated with the latest rest response.

Save then load with Vault sample returns 404

I set up a Sandbox, and I'm able to successfully use the API to create a new CreditCard() and then create() and then get an ID with getId()

I do all of this with the sample code provided in the vault sample files.

Here's part of the response I get:

Saved a new credit card with id: CARD-8X9397493H050034FKIJFHEQ

When I try to then connect and load a credit card, I get a 404:

Exception: Got Http response code 404 when accessing https://api.sandbox.paypal.com/v1/vault/credit-card/CARD-8X9397493H050034FKIJFHEQ

Is there something wrong with the sandbox? Why can't I save and then load a credit card? The code seems to be functioning, as I get no errors and get a successful response when calling create()

Error reporting

Hi,

Is there any way of accessing the Error codes/information that may be returned by PayPal - either with the HTTP status codes or the error object?

Thanks,

Peter

Authorization Void and Capture

When attempting to void or capture a previous Authorization, I receive an error:

Undefined index: id [APP/Vendor/PayPal/paypal/sdk-core-php/PayPal/Common/PPModel.php, line 14]

For the void, my code is:

$authorization = new \PayPal\Api\Authorization();
$authorization->get($data['transaction_id'], $apiContext);
$void = $authorization->void($apiContext);

What am I missing?

Payment::all always returns 0

Same call via REST API Dashboard returns all entries as expected.

Log:

PayPal\Core\PPHttpConnection: Connecting to https://api.sandbox.paypal.com/v1/oauth2/token
PayPal\Core\PPHttpConnection: Payload grant_type=client_credentials
PayPal\Core\PPHttpConnection: Adding header User-Agent: PayPalSDK/rest-sdk-php 0.6.0 (lang=PHP;v=5.4.25;bit=32;os=Linux_info_3.0_#1337_SMP_Tue_Jan_01_00:00:00_CEST_2000_all_GNU/Linux_Linux_info_3.0_#1337_SMP_Tue_Jan_01_00:00:00_CEST_2000_all_GNU/Linux;machine=Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux;openssl=0.9.8o;curl=7.21.0)
PayPal\Core\PPHttpConnection: Adding header Authorization: Basic // REMOVED //
PayPal\Core\PPHttpConnection: Adding header Accept: */*
PayPal\Core\PPHttpConnection: Connecting to https://api.sandbox.paypal.com/v1/payments/payment?count=10&start_index=5
PayPal\Core\PPHttpConnection: Payload 
PayPal\Core\PPHttpConnection: Adding header Content-Type: application/json
PayPal\Core\PPHttpConnection: Adding header User-Agent: PayPalSDK/rest-sdk-php 0.6.0 (lang=PHP;v=5.4.25;bit=32;os=Linux_info_3.0_#1337_SMP_Tue_Jan_01_00:00:00_CEST_2000_all_GNU/Linux_Linux_info_3.0_#1337_SMP_Tue_Jan_01_00:00:00_CEST_2000_all_GNU/Linux;machine=Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux;openssl=0.9.8o;curl=7.21.0)
PayPal\Core\PPHttpConnection: Adding header Authorization: Bearer // REMOVED //
PayPal\Transport\PPRestCall: {"count":0}

Adding filters/paging (none or using a start_id or start_time) also returns 0 entries.

Basic app configuration used (no redirect URLs set, default app capabilities).

I believe this might be an issue with the account and/or app general config and not the PHP SDK?

Discounts are not calculated

The PayPal validation rules require that:

  1. The total items cost must add up to the subtotal and,
  2. The subtotal + shipping + tax add up to the total.

When using discounts, there is no place to set the discount so the transaction is rejected as the subtotal + shipping + tax does not equal the total order amount AND/OR the total of item costs will not equal the subtotal (depending on how/when the discount is factored).

We need a way to set discounts on transactions. This is a core feature I would have thought to have been included amongst the first implemented in the ReST API (common sense), but apparently not, therefore I seek another solution to it in the interim. I have scoured the internet and found no less than a half dozen other reports/complaints of this issue on StackOverflow and other sites.

Receipt ID and PayPal Transaction ID

When the PayPal system emails a payment confirmation email to the account owner with a Receipt No: nnnn-nnnn-nnnn-nnnn.

Their control panel also reveals a transaction ID of: 8BL15100CF123456D.

However, the getId() function will return an ID in the format:
PAY-6UY654321M123456CKMKFEWY

Is there anyway of retrieving the transaction ID above or the receipt ID via this SDK or the API?

Many thanks,

Peter

@array annotation error

Hi,

I am currently including the paypal sdk into my Symfony 2 project using composer, but am encountering the following error on the CreditCard object:

    "message" : "[Semantical Error] The annotation \"@array\" in method PayPal\\Api\\CreditCard::setLinks() was never imported. Did you maybe forget to add a \"use\" statement for this annotation?",

If I remove that annotation it works, however I would prefer to not have to fork and create my own version of this repo for composer. Should this annotation exist there or is it a mistake?

Got Http response code 400 when accessing https://api.sandbox.paypal.com/v1/payments/payment

Hi,

I got this error with no useful details when trying to make a payment any idea what can cause that?

Got Http response code 400 when accessing https://api.sandbox.paypal.com/v1/payments/payment

I use some code like this one:

$apiContext = new ApiContext(new OAuthTokenCredential(
'my_client_id',
'my_client_secret'
));

$apiContext->setConfig(array(
'http.ConnectionTimeOut' => 30,
'http.Retry' => 1,
'mode' => 'sandbox',
'log.LogEnabled' => true,
'log.FileName' => '../PayPal.log',
'log.LogLevel' => 'INFO'
));

$addr = new Address();
$addr->setLine1('52 N Main ST');
$addr->setCity('Johnstown');
$addr->setCountry_code('US');
$addr->setPostal_code('43210');
$addr->setState('OH');

$card = new CreditCard();
$card->setNumber('4417119669820331');
$card->setType('visa');
$card->setExpire_month('11');
$card->setExpire_year('2018');
$card->setCvv2('874');
$card->setFirst_name('Joe');
$card->setLast_name('Shopper');
$card->setBilling_address($addr);

$fi = new FundingInstrument();
$fi->setCredit_card($card);

$payer = new Payer();
$payer->setPaymentMethod("credit_card");
$payer->setFundingInstruments(array($fi));

$amount = new Amount();
$amount->setCurrency($currency);
$amount->setTotal($total);

$transaction = new Transaction();
$transaction->setAmount($amount);
$transaction->setDescription($paymentDesc);

$payment = new Payment();
$payment->setIntent("sale");
$payment->setPayer($payer);
$payment->setTransactions(array($transaction));

$payment->create($apiContext);

Any clue?
Sorry if I post this at a wrong place I'm not sure if where I should ask my question.

Thank you!

Error in getRelatedResources

Trying to retrive the sale id in the end, however this:

$transactions = $payment->getTransactions();
$resources = $transactions[0]->getRelatedResources();

leads to:

Notice: Undefined index: related_resources in \paypal\sdk-core-php\lib\PayPal\Common\PPModel.php on line 14

Proxy config doesnt work

Hello,
i have tried to put a proxy configuration in the bootstrap file according to the pattern:

http.Proxy=http://[username:password]@hostname[:port]

But this setting has no effect.

If i put the proxy config directly to the execute method in the PPHttpConnection class it works.

Is this a known issue?

Confusion: Using Rest to get existing transactions

So,

I create a Rest Application.
And plumbed the keys into the SDK.
And flipped it to live.

It seems it will not fetch any transactions/payments that were not created thru the API itself.

Specifically, I am trying to refund a transaction that was made a few days ago in response to a eBay purchase.

But the REST Api will not recall it.
https://api.paypal.com/v1/payments/payment was recalling nothing until I accidentally ran the "PayPal account payments" sample

Does the REST Api do nothing for payments not made thru the rest API?
For a given transaction ID it just throws back a unfound resource on the refund end point.
And I've spent the entire morning banging my head against the wall…

Transaction description

Got a question where in Paypal is set the description of one transaction ? is it visible in paypal ?

Request Parameters

There are some parameters listed in: TABLE A.3 Set Express Checkout request parameters of this document which I would like to implement.

Particularly CUSTOM and NOSHIPPING. How would I go about "setting" them using this library?

Payment throws INTERNAL_SERVICE_ERROR if Transaction->Description strlenght more than 127

If I pass very big string(more than 127 symbols) to PayPal\Api\Transaction->setDescription and execute payment. The error occurs


Exception: Got Http response code 500 when accessing https://api.sandbox.paypal.com/v1/payments/payment.
string '{"name":"INTERNAL_SERVICE_ERROR","message":"An internal service error has occurred","information_link":"https://developer.paypal.com/webapps/developer/docs/api/#INTERNAL_SERVICE_ERROR","debug_id":"147e8a74a8b8f"}' (length=212)

Permissions API

Is it possible to use the Permissions API with the REST API SDK?

Cannot get payers shipping address information

There is no known way to get shipping information from the user (paypal payment):

$paymentExecution = new PaymentExecution();
$paymentExecution->setPayerId($payerId);
$payment = $payment->execute($paymentExecution, $apiContext);
$response = $payment->toJSON();

Response contains payer_info:

"payer_info":{"email":"[email protected]","first_name":"Test","last_name":"User","payer_id":"XXXX"}}

Is the feature missing or is there a way to get this information from the API?

Recurring payments

Now, I know this isn't something built into the API yet, however is there any timeframe it might be built in? Built an entire application thinking it was included so although it can wait, it cannot be redone with classic.

I guess also, would I be able to tie in a payment through the API to a classic API recurring system?

Annoying to use.

Tried very hard to use your SDK, only to find that I need to have installed also

  • composer (do-able after re-configuring php to be "ok" for it, but annoying as it means the software is not packaged as a component that can be just used)
  • git command line tools (needs X-code + OSX greater that 10.7, where I have 10.6.8)
  • required un-mentioned items from git hub such as satooshi/php-coveralls

this for me is a massive waste of time when all I am trying to do is use paypal's functionality. Would it not be more sensible to provide a set of classes and tests that do not have any dependencies that are outside this repository?

this mountain of extra work I am forced into is taking something that I should be able to use in minutes into something that will take days for me to work though. next I have to make a full backup, pay for the new OS and then install it.

thanks for the customer friendly install.

Showing cart data in paypal

I notice nothing in the documentation about enabling this, however its important to show the cart data when someone goes to paypal, rather then just saying "you will see your details before you pay". There must be an option for this, but hunting the docs for a few days not it does not seem like that's the case. Buttons do this by default but sacrifice proper redirects.

Pay with Paypal through Paypal REST API does not show up payment amount on Paypal Sandbox or live sites

In Order summery amount is not showing but description is showing

I am using below code to pass amount and description

require DIR . '/../bootstrap.php';
use PayPal\Api\Address;
use PayPal\Api\Amount;
use PayPal\Api\Payer;
use PayPal\Api\Payment;
use PayPal\Api\FundingInstrument;
use PayPal\Api\RedirectUrls;
use PayPal\Api\Transaction;

$charge = trim($_POST['amount']);
$currency = trim($_POST['currency']);
$desc = trim($_POST['desc']);
$get_url=trim($_SESSION['get_url']);

$payer = new Payer();
$payer->setPayment_method("paypal");

$amount = new Amount();
$amount->setCurrency($currency);
$amount->setTotal($charge);

$transaction = new Transaction();
$transaction->setAmount($amount);
$transaction->setDescription($desc);

$baseUrl = getBaseUrl();
$redirectUrls = new RedirectUrls();
$redirectUrls->setReturn_url("http://$get_url/includes/rest-api-sdk-php-master/sample/payments/ExecutePayment.php?success=true");
$redirectUrls->setCancel_url("http://$get_url/includes/rest-api-sdk-php-master/sample/payments/ExecutePayment.php?success=false");

$payment = new Payment();
$payment->setIntent("sale");
$payment->setPayer($payer);
$payment->setRedirect_urls($redirectUrls);
$payment->setTransactions(array($transaction));

try {
$payment->create($apiContext);
} catch (\PPConnectionException $ex) {
echo "Exception: " . $ex->getMessage() . PHP_EOL;
var_dump($ex->getData());
exit(1);
}

foreach($payment->getLinks() as $link) {
if($link->getRel() == 'approval_url') {
$redirectUrl = $link->getHref();
}
}

$_SESSION['paymentId'] = $payment->getId();
if(isset($redirectUrl)) {

header("Location: $redirectUrl");
exit;

}

In order summery its showing description but amount is not showing.
Please help me to sort out this problem
Thank for you help.

Sunil

Not writing to log file

In the logging manager:

/paypal/sdk-core-php/lib/PayPal/cor/PPLoggingManager.php

line 56
IS:
if($this->isLoggingEnabled && ($level <= $this->loggingLevel)) {

SHOULD BE:
if($this->isLoggingEnabled && ($level >= $this->loggingLevel)) {

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.