Setup
$ composer install
$ php -S localhost:8000
Version 1.0 call:
curl -X "GET" "http://localhost:8000/index.php/foo" -H "Accept: 1.0"
Setup
$ composer install
$ php -S localhost:8000
Version 1.0 call:
curl -X "GET" "http://localhost:8000/index.php/foo" -H "Accept: 1.0"
<?xml version="1.0" encoding="UTF-8"?> | |
<opml version="1.0"> | |
<head> | |
<title>Jean-Pierre subscriptions in feedly Cloud</title> | |
</head> | |
<body> | |
<outline text="innovation" title="innovation"> | |
<outline type="rss" text="Pl4n3s world" title="Pl4n3s world" xmlUrl="http://pl4n3.blogspot.com/feeds/posts/default?alt=rss" htmlUrl="http://pl4n3.blogspot.com/"/> | |
<outline type="rss" text="Mozilla Hacks - the Web developer blog" title="Mozilla Hacks - the Web developer blog" xmlUrl="http://hacks.mozilla.org/feed/" htmlUrl="https://hacks.mozilla.org"/> |
#!/bin/sh | |
# Get the project name | |
PROJECT_NAME=${1:-laravel} | |
# Install Laravel | |
laravel new $PROJECT_NAME | |
# Change to the project directory | |
cd $PROJECT_NAME |
class MoneyType extends AbstractType implements DataMapperInterface | |
{ | |
public function buildForm(FormBuilder $builder, array $options) | |
{ | |
$builder | |
->add('amount', 'integer') | |
->add('currency', 'string') | |
->setDataMapper($this) | |
; | |
} |
PHP Extensions Tutorial | |
The best way to learn about writing extensions is - to write an | |
extension! If you want to "code along", you'll need to be set up to | |
compile PHP 7 extensions, have a checkout of the example code we'll be | |
using, and have the C library we'll be "wrapping" available on your | |
system. | |
All the code we'll be working with is available from | |
https://github.com/auroraeosrose/php-extensions-code |
unserialize()
Pour all of the ingredients above into a pot, add a little bit of Python, and you've got a remotely exploitable code injection vulnerability in any project that depends on this "confidential string" library.
<?php | |
namespace Gnugat\StackRollback; | |
use Doctrine\DBAL\Connection; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpKernel\HttpKernelInterface; | |
/** | |
* Example: |
parameters: | |
file_upload_mime_types: | |
- application/pdf | |
- application/x-pdf | |
- text/plain | |
- application/rtf | |
- image/* | |
- application/msword | |
- application/vnd.openxmlformats-officedocument.wordprocessingml.document |
<snippet> | |
<content><![CDATA[ | |
<i class="fa fa-fw fa-${1}"></i> | |
]]></content> | |
<tabTrigger>fa</tabTrigger> | |
<description>Font Awesome Icon</description> | |
<scope>text.blade, text.html.blade, text.html</scope> | |
</snippet> |
I wanted to be able to use Sculpin to generate GitHub pages. Here's what I did...
Created a super awesome Sculpin site from the Sculpin Blog Skeleton
Make sure everything is under version control in my master
branch (except things that shouldn't be. see the .gitignore
)
Updated publish.sh
:
#!/bin/bash