i can't get steam-condenser-php-master to work

180 views
Skip to first unread message

Gamer

unread,
Nov 2, 2015, 3:07:23 PM11/2/15
to Steam Condenser
hi 

i download steam-condenser-php-master 1.3.10 and i install composer , and i create file in root where steam-condenser installed named test.php and i put this code :

<?php 

require_once('./lib/SteamCondenser.php');
$server = new SourceServer('193.192.59.19', 27031);

?>

i get this error Fatal error: Class 'SourceServer' not found in C:\wamp\www\steam-condenser-php-master\exemple.php on line 

how i can fix it ?

Sebastian Staudt

unread,
Nov 3, 2015, 7:03:54 AM11/3/15
to Steam Condenser
Hi.

The master branch is already namespaced.
You have to include the classes that you want to use:

    use SteamCondenser\Servers\SourceServer;

Add this line after the require_once().

Best regards,
    Sebastian

--
You received this message because you are subscribed to the Google Groups "Steam Condenser" group.
To unsubscribe from this group and stop receiving emails from it, send an email to steam-condens...@googlegroups.com.
To post to this group, send email to steam-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/steam-condenser/857e2cad-5b6a-475e-b720-7d4b8339ec0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages