Skip to content

Instantly share code, notes, and snippets.

View wingsergey's full-sized avatar

Sergey wingsergey

  • TradeTracker
  • Ukraine
View GitHub Profile
@wingsergey
wingsergey / discord.msg.send.php
Created November 3, 2020 11:39 — forked from Mo45/discord.msg.send.php
PHP - Send message to Discord via Webhook
<?php
//=======================================================================================================
// Create new webhook in your Discord channel settings and copy&paste URL
//=======================================================================================================
$webhookurl = "YOUR_WEBHOOK_URL";
//=======================================================================================================
// Compose message. You can use Markdown
// Message Formatting -- https://discordapp.com/developers/docs/reference#message-formatting
@wingsergey
wingsergey / ActiveRecord.php
Created March 4, 2019 14:19 — forked from antonmedv/ActiveRecord.php
Facade in Symfony
<?php
namespace AppBundle\Entity;
use AppBundle\DependencyInjection\Container;
class ActiveRecord extends Container
{
protected static function getDoctrine()
{