How to Implement PHP Promises to Evaluate Conditions like in JavaScript - Simple PHP Promise Library package blog

Recommend this page to a friend!
  All package blogs All package blogs   Simple PHP Promise Library Simple PHP Promise Library   Blog Simple PHP Promise Library package blog   RSS 1.0 feed RSS 2.0 feed   Blog How to Implement PHP ...  
  Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  

Author:

Updated on: 2020-10-02

Posted on: 2020-10-02

Package: Simple PHP Promise Library

A promise is a control structure that you can use in your code to define the actions to be executed when a condition is true, false, or needs to be evaluate later again while the condition status is not yet determined.

This package provides means to implement promises in PHP by evaluating conditions now or later using deferred promises.




About the Simple PHP Promise Library Package

The package Simple PHP Promise Library is one of the few PHP packages that was considered notable recently because it does something that is worth paying attention.

The basic purpose is: Register functions to call when conditions are met

Here follows in more detail what it does:

This package can register functions to call when conditions are met.

It provides a promise class that can register one callback function to be called when a condition is true. It can also call another callback function to be called when the condition is false.

The package also provides a deferred class to register a new promise to evaluate the conditions again later.

Conclusion

The Simple PHP Promise Library can be downloaded from download page or be installed using the PHP Composer tool following instructions in the Composer install instructions page.

This package was considered notable for implementing its benefits in a way that is worth noticing.

Notable PHP packages can be often considered innovative. If this package is also innovative, it can be nominated to the PHP Innovation Award and the author may win prizes and recognition for sharing innovative packages.

If you also developed your own notable or innovative packages consider sharing them, so you can also earn more visibility for your package as well nice prizes.

One nice prize that many PHP developers want and you may like is the PHP elePHPant mascot plush.




You need to be a registered user or login to post a comment

1,564,682 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on:

FacebookGmail
HotmailStackOverflow
GitHubYahoo


Comments:

No comments were submitted yet.




  Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  
  All package blogs All package blogs   Simple PHP Promise Library Simple PHP Promise Library   Blog Simple PHP Promise Library package blog   RSS 1.0 feed RSS 2.0 feed   Blog How to Implement PHP ...  

For more information send a message to info at phpclasses dot org.