[ReflectionException] Class Fxp\Composer\AssetPlugin\Repository\NpmRepository does not exist

Published on

Composer throws [ReflectionException] Class Fxp\Composer\AssetPlugin\Repository\NpmRepository does not exist php composer.phar update It gives me this error: [ReflectionException] Class Fxp\Composer\AssetPlugin\Repository\NpmRepository does not exist [ErrorException] Declaration of Fxp\Composer\AssetPlugin\Repository\AbstractAssetsRepository::whatProvides() should be compatible with Composer\Repository\ComposerRepository::whatProvides(Composer\DependencyResolver\Pool $pool, $name, $bypassFilters = false) Can someone help me how to fix this? Solution:  About nine days ago, Composer\Repository\ComposerRepository::whatProvides api changed. (#2668) So, if … Continue reading [ReflectionException] Class Fxp\Composer\AssetPlugin\Repository\NpmRepository does not exist

How to Configure MongoDB with PHP for Wamp on Windows

Published on

How to Configure MongoDB with PHP for Wamp on Windows? how to use mongodb with wamp server? Follow the below simple steps to configure Mongodb with PHP. Click on this link to download the drivers. http://pecl.php.net/package/mongo/1.6.14/windows From above link, download the appropriate. I have downloaded 5.4 Thread Safe (TS) x86 Unizip this folder. Copy the … Continue reading How to Configure MongoDB with PHP for Wamp on Windows

Laravel 5 Failed opening required bootstrap/../vendor/autoload.php

Published on

bootstrap/../vendor/autoload.php. Failed to open stream: No such file or directory. The “vendor” folder does not exist. Which OS you are using ? For Windows : Go to Command Prompt set path to www/{ur project} For me : www/laravel5 Then type this command : composer install It will automatically install all dependency in vendor/ ————————/OR/—————————- Run … Continue reading Laravel 5 Failed opening required bootstrap/../vendor/autoload.php

FatalErrorException in TaskQueue.php line 13 in Laravel 5

Published on

FatalErrorException in TaskQueue.php line 13 in Laravel 5. The class “TaskQueueInterface” had not be found. The following is my solution: open the folder: /vendor/guzzlehttp/promises/src edit TaskQueue.php modify “class TaskQueue implements TaskQueueInterface” to “class TaskQueue” After doing the above, stay tuned for the official release.

how to include or use phpcrawl to the project

Published on

PHPCrawl is a framework for crawling/spidering websites written in the programming language PHP, so just call it a webcrawler-library or crawler-engine for PHP PHPCrawl “spiders” websites and passes information about all found documents (pages, links, files ans so on) for futher processing to users of the library. It is high configurable and provides several options … Continue reading how to include or use phpcrawl to the project

How can I integrate the new Google Cloud Messaging in a PHP?

Published on

GCM with PHP (Google Cloud Messaging) The cURL code that’s on the page that Elad Nava has put here works. Elad has commented about the error he’s receiving. String describing an error that occurred while processing the message for that recipient. The possible values are the same as documented in the above table, plus “Unavailable” … Continue reading How can I integrate the new Google Cloud Messaging in a PHP?

How to Split a string every time it reaches 4 digits using regular expressions in php

Published on

Split a string every time it reaches 4 digits using regular expressions in php. Want to use preg_match_all: $str = ‘ABCDE1234ABCD1234ABCDEF1234’; preg_match_all(‘/[a-z]+[0-9]{4}/i’, $str, $matches); var_dump($matches); Output: array(1) { [0]=> array(3) { [0]=> string(9) “ABCDE1234” [1]=> string(8) “ABCD1234” [2]=> string(10) “ABCDEF1234”}} —————————————————/OR/————————————————- Use the principle of contrast: \D+\d{4} # requires at least one non digit # followed … Continue reading How to Split a string every time it reaches 4 digits using regular expressions in php