Feed aggregator
PHP: Unable to find the wrapper "https"
PHP may tell you the following:
PHP Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
This means that PHP is not able to do secure HTTP requests. Reason for this is that it has no SSL library to use.
UnixRecompile PHP with the --with-openssl flag.
WindowsEdit your php.ini file and add the following line:
extension=php_openssl.dll
Community News: Packagist Latest Releases for 04.27.2013
- mparaiso/routeconfigserviceprovider (0.0.23)
Route config file support for Silex framework
- openlss/lib-tpl (0.0.13, 0.0.12)
Wrapper library for managing PHPTAL environment. Also supports HTML Tidy formatting.
- onemightyroar/php-paulus-components (0.9.3)
Components to enhance Paulus projects to enable quicker, more structured REST API's
- voda/date-input (1.0.1)
HTML 5 compatible date / time input field for Nette.
- sweikenb/php-library (2.2.0)
Some useful (and mostly decoupled) php classes for common tasks.
- intervention/image (1.3.11)
Image handling and manipulation library with support for Laravel 4 integration
- segmentio/analytics-php (0.4.2)
Segmentio Analytics PHP Library
- chronon/bootstrap (2.3.1)
Twitter Bootstrap packaged as a CakePHP plugin.
- php-unoconv/php-unoconv (0.2.0)
Unoconv PHP, an Object Oriented library for easy file conversion with LibreOffice's unoconv
- phundament/p3pages (0.10.6)
Page Manager
- mparaiso/doctrineormserviceprovider (0.0.19, 0.0.18)
Doctrine ORM for Silex
- csanquer/twig-extra-bundle (0.1)
Twig Extra Extensions Bundle
- alchemy/binary-driver (1.3.4, 1.3.3, 1.3.2)
A set of tools to build binary drivers
- lilweb/job-bundle (0.1.0)
Performing asynchronous jobs with Symfony2
- uam/amazon-pa-bundle (0.1.1)
Amazon Product Advertising API Bundle
- matear/cliptools (v0.5.1)
Cliptools es una libreria que permite interactuar y crear aplicaciones PHP para correr en consola
- lfnds/sdk (1.2.3, 1.2.2)
PHP SDK for the elefunds API.
- paypal/rest-api-sdk-php (v0.6.0)
PayPal's PHP SDK for REST APIs
- sammaye/mongoyii (1.1.0)
A Yii MongoDB ORM
- desarrolla2/rss-client-bundle (v2.0.1)
This Bundle provides a way to get rss feeds friendly.
- br0sk/yiiron (1.0.4)
Yiiron is a Yii extension that integrates the services of iron.io in the Yii Famework
- desarrolla2/rss-client (v2.0.3)
A simple to use RSS client library.
- desarrolla2/cache (v1.3.1-stable)
Provides an cache interface for several adapters (Apc, File, Mongo, Memcached, Mysql, ... )
- jdolieslager/fetranslator (v0.1.2, v0.1.1)
ZF2 Module for translating routematches and messages
- checkdomain/upload-manager-bundle (0.0.1)
Asynchron multiupload form type and service for Symfony2
- paypal/sdk-core-php (v1.4.0)
PayPal Core SDK for PHP
- amg-dev/amg-sentry-plugin (1.1.0)
Symfony 1.x plugin for Sentry.
- mikehaertl/phpwkhtmltopdf (1.1.5)
A slim PHP wrapper around wkhtmltopdf with an easy to use and clean OOP interface
PHPMaster.com: Better Understanding Random
On PHPMaster.com there's a new tutorial talking about randomness in PHP, what it is and some of the things it can be used for.
Use of random values is very important in the computer security field. It is crucial in computer programming for development of secure systems that are not vulnerable to malicious subversion. Cryptography relies on random value's generation and their reproducibility for unpredictable output that is core for security of any system. Random values are fundamental for secure coding practices and PHP highly makes use of them for security. You will find them used in all libraries and frameworks and almost all codes rely on them for the generation of tokens, salts and as inputs for further functions.He talks about the important of good random numbers and some of the common uses for it including generating salts and unique identifiers. He mentions the "pseudorandomness" of PHP's generators and how they're seeded to help increase this randomness. He finishes up the tutorial with some suggestions and language features for creating "as random as possible" values like using "/dev/urandom" on Linux-based systems.
Link: http://phpmaster.com/better-understanding-random/Dev/Hell Podcast: Episode 31: Feline Tooth Extraction
The /Dev/Hell podcast has posted their latest episode - Episode #31 - Feline Tooth Extraction. The podcast is hosted by PHP community members Chris Hartjes and Ed Finkler.
Short notes time: In this episode, Chris and Ed talk about conferences we always wanted to go to, and languages & tools we'd thought we'd hate and turned out to like. Then Ed waxes on the Open Recipes project.You can listen to this latest episode either through the in-page player or by downloading the mp3. Links to all of the technologies and tools they mention are in the show's notes on the page.
Link: http://devhell.info/post/2013-04-24/feline-tooth-extractionSoftware Gunslinger: PHP is meant to die, continued
In his previous post ("PHP was meant to die") the point was made that PHP isn't really designed as a language to handle long running processes very well. It's made to handle a few operations and then die at the end of the request. In this follow up post he talks more about using PHP for long running processes and a library that could help.
Yes, I already acknowledged that PHP has a garbage collection implementation starting 5.3.0 and up (opt-in or opt-out, that's not the problem). I also acknowledge that garbage collection works, and is able to take care of most circular references just fine. [...] Anyway, as previously stated too, garbage collection is a great thing, but not enough for PHP. It's a borrowed feature that does not play well with old fundamental decisions inherited from the original design. Garbage collection is not a magical solution for every problem, like many tried to argue about. Let's illustrate with another example.His example uses the React PHP library (a non-blocking I/O platform) to handle a lot of incoming data to a port and report back some memory usage and limit settings. He explains a bit about what's happening and shares the results of the test, including the end result - a fatal error when the memory limit was hit. He still comes to the same conclusion, ultimately...PHP is just not the language to use for long-running processes that do any large amount of work.
Link: http://software-gunslinger.tumblr.com/post/48215406921/php-is-meant-to-die-continuedCommunity News: Packagist Latest Releases for 04.26.2013
- titon/controller (0.1.2, 0.1.1, 0.1.0)
The Titon controller package provides controllers and actions to handle the HTTP request and response.
- titon/view (0.1.1, 0.1.0)
The Titon view package provides template handling with the use of a rendering engine and helpers.
- titon/common (0.7.2)
The Titon common package provides global functionality like class traits and augmentation as well as dependency and configuration management.
- titon/route (0.5.2)
The Titon route package adds support for dynamic route handling and mapping.
- titon/debug (0.4.5)
The Titon debug package provides debugging and advanced error and exception handling.
- phpygments/phpygments (1.0.0)
Syntax highlighter bridge for pygments
- segmentio/analytics-php (0.4.1)
Segmentio Analytics PHP Library
- panmedia/raptor (v1.0.1, v1.0)
An HTML5 WYSIWYG content editor.
- components/pavlov (0.3.0)
Behavioral API over QUnit.
- matear/cliptools (v0.5.0)
Cliptools es una libreria que permite interactuar y crear aplicaciones PHP para correr en consola
- onemightyroar/php-activerecord-components (1.0.4)
Useful common components for a php-activerecord based project
- rcrowe/twigbridge (0.2.5)
Adds the power of Twig to Illuminate / Laravel 4
- net_bazzline/classmap_generator (v1.4)
php classmap and autoloader generator for psr-0 and previous php files - it should find all classes in every php file
- iron-io/iron_worker (1.4.0)
Client library for IronWorker (multi-language worker platform that runs tasks in the background, in parallel, and at scale.)
- rah/rah_replace (v0.4.1)
Search and replace plugin for Textpattern
- wyrihaximus/phunin-node (0.1.1, 0.1.0)
munin-node in PHP
- johnstevenson/json-works (v1.0.1)
Create, edit, query and validate json
- bit3/contao-assetic (1.1.1)
Assetic integration for Contao OpenSource CMS
- intouch/laravel-newrelic (1.0.1)
Laravel 4 NewRelic Integration
- mparaiso/crudserviceprovider (0.0.5)
CRUD helper Silex framework
- priyolahiri/neo4jphp (0.1.4, 0.1.2, 0.1.3)
Wrapper for the Neo4j graph database REST interface
- fabricius/fabricius (v0.1.0)
Library for defining content in a similar way as Jekyll.
- mustache/mustache (v2.3.1)
A Mustache implementation in PHP.
- phundament/p3media (0.11.9)
Yii media file manager module with ckeditor integration
- desarrolla2/cache (1.3.0-stable)
Provides an cache interface for several adapters (Apc, File, Mongo, Memcached, Mysql, ... )
- phormium/phormium (0.1)
A minimalist ORM for PHP.
- monotek/minitpl (v1.0.0, 1.0.0)
Miniature fully featured PHP template engine
- candycms/plugins (3.0.4)
Plugins for candyCMS.
- xi/test-selenium (0.2.2, 0.2.1)
Selenium 2 bindings
- widop/google-analytics-bundle (1.0.0)
Google certificate-based authentication in server-to-server interactions with google analytics
- checkdomain/upload-manager-bundle (0.0.9)
Asynchron multiupload form type and service for Symfony2
- webforge/testdata-repository (0.2.2-alpha)
A repository for data that you can use to fill your unit tests.
- rollerworks/recordfilter-bundle (v0.0.2)
Record search-filtering bundle for Symfony
- rah/rah_function (v0.7.0)
Every PHP function and method is a Textpattern tag
- brainbits/transcoder (1.1.2)
Library for encoding, decoding transcoding data.
- bit3/contao-twig (1.4.1)
Twig integration for Contao OpenSource CMS
- raindrop/twigloader-bundle (0.9.1beta)
Symfony Raindrop TwigLoaderBundle
- rah/rah_debug (v0.2.2)
User tied debugging information plugin for Textpattern
- mjohnson/utility (1.4.1)
A collection of CakePHP utility libraries.
Site News: Popular Posts for the Week of 04.26.2013
- PHPMaster.com: Consuming Feeds with SimplePie
- NetTuts.com: Reflection in PHP
- Site News: Popular Posts for the Week of 04.19.2013
- 7PHP.com: Zend Certifications Tips & Tricks - Hear It From Zend Certified Engineer Eric Hogue
- Systems Architect: Performance benchmark of popular PHP frameworks
- Community News: Latest PEAR Releases for 04.22.2013
- PHP.net: PHP 5.5 beta 4 is now available
- DZone.com: PHPUnit vs. Phake cheatsheet
- Samuel Levy: PHP is the right tool for the job (for all the wrong reasons)
- MaltBlue.com: Why Testing Makes a Project Successful and You Can't Afford to Deny It
Luis Atencio: Notes on Continuous Delivery - Implementing a Testing Strategy
Luis Atencio has posted the latest article in his "Continuous Delivery" series today, this time with a focus on implementing a testing strategy. This is the fourth post in the series (part 1, part 2 and part 3).
There are three things in life that are always held to be true: we will die someday; we will pay taxes; and software will have bugs.... LOL [...] A testing strategy is often overlooked in software projects. This should not be too surprising, we want to build applications quickly and release them quickly. However, leaving quality out of the picture or towards the end are terrible mistakes.He talks some about the different types of testing that revolve around software development - "business facing" and "technology facing." These are each split down even further into things like acceptance, integration and unit testing.
Link: http://www.luisatencio.net/2013/04/notes-on-continuous-delivery.htmlRob Allen: Simple logging of ZF2 exceptions
In this new post to his site Rob Allen shows you how to implement a simple logging method for catching exceptions in your Zend Framework 2 application.
I recently had a problem with a ZF2 based website where users were reporting seeing the error page displayed, but I couldn't reproduce in testing. To find this problem I decided to log every exception to a file so I could then go back and work out what was happening. In a standard ZF2 application, the easiest way to do this is to add a listener to the 'dispatch.error' event and log using ZendLog.He uses an event listener to attach a service that contains a "logException" method. This method uses the ZendLog component to write out the error message to a local log file including a backtrace of where the issue occurred.
Link: http://akrabat.com/zend-framework-2/simple-logging-of-zf2-exceptionsPHP.net: PHP 5.5 beta 4 is now available
The PHP.net site has posted about the release of PHP 5.5 beta 4, the last beta that will be made for this series.
The PHP development team announces the release of the 4th beta of PHP 5.5.0. This release fixes some bugs against beta 3 and cleans up some features. This is a development preview - do not use it in production.Several bugs were fixed and changes made - you can read the complete list in the NEWS file. To get this latest beta and try it out with your applications (and run the tests) you can download it here (here for Windows).
Link: http://php.net/index.php#id2013-04-25-1Community News: Packagist Latest Releases for 04.25.2013
- bshaffer/oauth2-server-httpfoundation-bridge (v0.6)
A bridge to HttpFoundation for oauth2-server-php
- gree/jose (0.1.0)
JWT, JWS and JWS implementation in PHP
- onemightyroar/php-activerecord-components (1.0.3)
Useful common components for a php-activerecord based project
- onemightyroar/php-paulus-components (0.9.2)
Components to enhance Paulus projects to enable quicker, more structured REST API's
- tagmaker/tagmaker (0.5.1)
A dynamic builder of tag elements
- oodle/krumo (v0.2.2)
KRUMO - version 2.0 of print_r(); and var_dump(); (with new updates)
- netglue/zf2-tripadvisor-module (0.1.0)
ZF2 module that provides useful tools for dealing with tripadvisor feeds for a specific location
- meenie/munee (1.5.11)
PHP 5.3 Asset Optimisation - Smart Caching, On-The-Fly Image Resizing, On-the-fly LESS, SASS, CoffeeScript Compiling, and CSS & JavaScript Combining/Minifying
- phery/phery (2.4.7)
XAJAX alternative, phery.js is a library in PHP that maps to all jQuery functions, DOM manipulation, meta arguments and serialization, seamless ajax integration, RESTful emulation, form submission and partial rendering views, plus its PSR-0 compatible
- dandydev/gapi-php (v1.5)
Gapi-php is a new version of the Gapi-php class, for accessing Google Analytics accounts.
- tga/audience (v0.1.0-alpha)
Audience statistics bundle for Symfony2
- andyfleming/handy (v1.2.2)
Handy Model class for amazing data magic.
- stdtech/dbo (v1.0)
Simple ORM for PHP 5.3
- rukbat/bitly-bundle (v0.1.1)
bit.ly API bundle for symfony2
- sylius/resource-bundle (v0.1.0)
Resource component for Sylius.
- kamisama/cake-resque (3.3.3)
A CakePHP plugin for creating background jobs with Resque
- components/bootstrap (2.3.1)
Sleek, intuitive, and powerful front-end framework for faster and easier web development.
- gregwar/captcha (v1.0.5)
Captcha generator
- filp/damnit (1.0.4)
php error handling for cool kids
- filp/whoops (1.0.4)
php error handling for cool kids
- schmunk42/database-command (0.8.10)
Yii command to create database migrations from existing schema
- desarrolla2/cache (1.2.0)
Provides an cache interface for several adapters (Apc, File, Mongo, Memcached, Mysql, ... )
- intervention/image (1.3.10)
Image handling and manipulation library with support for Laravel 4 integration
- kumatch/fs-fileinfoextra (0.1.0)
A extended SplFileInfo class thin.
- kdyby/redis (v1.0.2, v2.0.4)
Redis storage for Nette Framework
- rah/rah_terminal_markdown (v0.1.0)
Web terminal plugin for Textpattern
- nercury/code-igniter-bundle (1.2.3)
Allows loading Code Igniter as a bundle and eases migration to Symfony.
- rah/rah_terminal_textile (v0.1.0)
Textile module for rah_terminal
- rah/rah_terminal_txpmarkup (v0.1.0)
Textpattern markup language module for rah_terminal
- rah/rah_terminal (v0.1.0)
Web terminal plugin for Textpattern
- gocardless/gocardless (0.4.0)
The PHP client library for the GoCardless API
- jyggen/curl (v2.0.2)
A simple and lightweight cURL library with support for multiple requests in parallel.
- liip/doctrine-cache-bundle (1.0.1)
This Bundle provides integration into Symfony2 with the Doctrine Common Cache layer.
- pagerfanta/pagerfanta (v1.0.0)
Pagination for PHP 5.3
- alchemy/ghostscript (0.3.0)
Ghostscript PDF, a library to handle PDF through ghostscript
- widop/http-adapter-bundle (1.0.0)
Issue HTTP request.
- alchemy/binary-driver (1.3.1, 1.3.0, 1.2.1)
A set of tools to build binary drivers
- regeda/nest (v1.1)
Nest is a decorator for key based methods invocation
SimpleID: Invalid OpenID message
SimpleID, my preferred self-hosted OpenID server software, unnerved me for quite a while with the following error message:
HTTP/1.1 400 Bad Request error:Invalid OpenID message. ns:http://specs.openid.net/auth/2.0
This happened after I entered username and password to log into SimpleID, before getting redirected back to the application I wanted to login originally.
Navigating back and reloading that page always worked, but it wasn't nice to get that message in the first way.
DebuggingI expected the worst after my last OpenID debugging session, but this time it was quite simple.
At first I compared the GET variables that got sent to the login form URL with the ones that were in the POST data when submitting the form. They were equal, although I would have thought otherwise because of the Invalid OpenID message error.
The next step was to find out where this error is being thrown, which was only two nearby lines of code, of which one could be ruled out by thinking. The apparent reason for the error was that $request['openid.mode'] was not set - which is strange, because the POST data definitely contained it.
The situation was now the following:
-
I had an URL
http://id.cweiske.de/continue?s=eJyFk...
that got rewritten to
/index.php?q=continue&s=eJyFk...
-
The GET parameters available in PHP only contained q, not s:
array(1) { ["q"]=> string(8) "continue" }
I suspected an error with the Apache rewrite rule, but investigating that didn't yield any results: The rules were fine.
What else could it be? phpinfo() showed me the un-rewritten $_SERVER["REQUEST_URI"], and the rewritten $_SERVER["QUERY_STRING"] completely with the s parameter.
This means that stripping the s parameter happened in PHP itself, and not somewhere earlier. Placing a var_dump($_GET); at the beginning of index.php also showed that s was missing.
Now I remembered Suhosin, any my earlier problems with it. phpinfo() showed me a list of settings, one with the name
suhosin.get.max_value_length => 512
There it was: s was some 600 bytes long, and Suhosin simply stripped it away. After modifying php.ini and reloading Apache, the error was gone.
FinAfter discovering the problem's source, I made a patch for SimpleID that checks the suhosin.get.max_value_length setting and opened a bug report for it.
Now I also know that Suhosin reports the error in /var/log/syslog (where nobody looks for apache-related errors):
suhosin[12345]: ALERT - configured GET variable value length limit exceeded - dropped variable 's' (attacker '1.2.3.4', file '/path/to/id.cweiske.de/index.php')
PHP 5.5 beta 4 is now available
Community News: Packagist Latest Releases for 04.24.2013
- tonicospinelli/classgeneration (1.0.0)
Library to create Php Class files
- hirudo/for-joomla (0.9.10)
Joomla implementation of Hirudo
- hirudo/for-drupal (0.9.10)
Drupal implementation of Hirudo
- alchemy/binary-driver (1.2.0, 1.1.0, 1.0.0)
A set of tools to build binary drivers
- hirudo/templating-smarty (0.9.11, 0.9.10)
Smarty integration for Hirudo
- malenki/desbaies (0.1.0)
Some classes for create SQL query without SQL code.
- johnstevenson/json-works (v1.0.0)
Create, edit and validate json
- hirudo/core (0.9.10)
Core classes of Hirudo
- bshaffer/oauth2-server-php (v0.6)
OAuth2 Server for PHP
- hirudo/stand-alone (0.9.10)
Stand Alone implementation of Hirudo
- herrera-io/wise (1.2.0)
Symfony Config for everyone else.
- netglue/zf2-ssl-module (0.1.0)
ZF2 Module that helps enforce the use of an SSL connection for HTTP requests
- lagden/sf14libs (v0.1.0)
Static library for Symfony 1.4
- smasty/neevo-nette-ext (v1.2.1)
Neevo extension for Nette Framework
- kbrw/riak-bundle (1.3.1, 1.3.0)
Allows your application to intereact with Riak datastorage
- mcfedr/paypal (2.0.2)
Paypal
- fsi/data-indexer (0.9.1)
FSi DataIndexer Component - Component created to provide one simple object indexing strategy for FSi DataSource and DataGrid components.
- nixilla/twitter-api-consumer (0.3, 0.2)
Twitter API consumer in PHP, supports API 1.1 and works with OAuth 1.1 as well as OAuth 2.0
- wdalmut/simple-mvc (0.1.6)
A simple and full stack Push & Pull MVC framework.
- king23/king23 (0.1.2)
the King23 Framework
- nercury/code-igniter-bundle (1.2.2, 1.2.1)
Allows loading Code Igniter as a bundle and eases migration to Symfony.
- evert/sitemap-php (1.0.0, 0.0.1)
Lightweight library for generating Google sitemap XML files
- php/skeleton (0.1.0)
Generic PHP.Skeleton package
- igorw/config-service-provider (v1.2.0)
A config ServiceProvider for Silex with support for php, json and yaml.
- kitpages/chain-bundle (v1.5.0, v1.4.0)
This is a Symfony2 bundle that executes the classes one after the other.
- jasonlewis/enhanced-router (v1.0.0)
Enhanced Router is an extension to the Laravel 4 router and provides some enhanced functionality.
- swftools/swftools (0.2.1)
PHP SwfTools
- soflomo/purifier (v0.1.1, v0.1.0)
HTML Purifier as filter and view helper for Zend Framework 2
- monolog/monolog (1.5.0)
Sends your logs to files, sockets, inboxes, databases and various web services
- openlss/lib-xport (0.0.20)
Service RPC transport layer / protocol implemented in PHP
- zf-commons/zfc-admin (v0.1.1)
A generic Admin module for ZF2.
- rah/rah_repeat (v1.0.0)
Iterations plugin for Textpattern
- soflomo/common (v0.4.0, v0.3.1)
Utility module with Soflomo common classes
- rah/rah_external_output (v1.0.2)
Content-type snippets plugin for Textpattern
- rezon/sugi (0.3.0)
PHP5 Framework
- filp/damnit (1.0.3)
php error handling for cool kids
- filp/whoops (1.0.3)
php error handling for cool kids
Community News: Latest Releases from PHPClasses.org
- PHP MySQL ActiveRecord class
Package:Summary:Map objects to MySQL records using ActiveRecordGroups:Author:Description:This class can map objects to MySQL records using ActiveRecord design pattern...
Read more at http://www.phpclasses.org/package/8021-PHP-Map-objects-to-MySQL-records-using-ActiveRecord.html
- PHP CSV XLS Converter
Package:Summary:Convert data from CSV files to Excel XLS formatGroups:Author:Description:This class can convert data from CSV files to Excel XLS format using the PHPExcel library...
Read more at http://www.phpclasses.org/package/8024-PHP-Convert-data-from-CSV-files-to-Excel-XLS-format.html
- PHP DB Query Class
Package:Summary:Query MySQL databasesGroups:Author:Description:This class can query MySQL databases...
Read more at http://www.phpclasses.org/package/8026-PHP-Query-MySQL-databases.html
- PHP HTML Form Elements
Package:Summary:Generate HTML for form elementsGroups:Author:Description:This class can generate HTML for form elements...
Read more at http://www.phpclasses.org/package/8018-PHP-Generate-HTML-for-form-elements.html
- PHP Enum Data Type
Package:Summary:Generate a enumeration class for a given namespaceGroups:Author:Description:This class can generate a enumeration class for a given namespace...
Read more at http://www.phpclasses.org/package/8016-PHP-Generate-a-enumeration-class-for-a-given-namespace.html
- PHP MySQL XLSX Export
Package:Summary:Export MySQL table records to Excel XML formatGroups:Author:Description:This class can export MySQL table records to Excel XML format...
Read more at http://www.phpclasses.org/package/8019-PHP-Export-MySQL-table-records-to-Excel-XML-format.html
- Conta Vivo On Line
Package:Summary:Get details of an account of Vivo phone operatorGroups:Author:Description:This class can Get details of an account of Vivo phone operator of Brazil...
Read more at http://www.phpclasses.org/package/8013-PHP-Get-details-of-an-account-of-Vivo-phone-operator.html
- Online PHP Menu Builder Class
Package:Summary:Create hierarchic menus stored in a MySQL databaseGroups:Author:Description:This class can create hierarchic menus stored in a MySQL database...
Read more at http://www.phpclasses.org/package/8010-PHP-Create-hierarchic-menus-stored-in-a-MySQL-database.html
PHP Podcast: Episode #2 - Adam Culp
The PHP Podcast (from Zend) has posted its second episode - Episode #2, an interview with Adam Culp who recently joined the team at Zend and is a organizer for the South Florida PHP User Group.
In this episode we talk to Adam Culp on his very first day as a Zend employee. We talk about PHP community and Adam's decision to move from the realm of independent consultant to Zender! Adam is the organizer of SunshinePHP, PHP Guru and joining the Zend Professional Services Team.You can listen to this latest episode either through the in-page player or by downloading the mp3 directly. You can also subscribe to their feed of you want this and future episodes pulled automatically.
Link: http://phppodcast.com/episode-2-adam-culp/Pádraic Brady: 20 Point List For Preventing Cross-Site Scripting In PHP
Pádraic Brady has posted a 20 point list that wants to help you prevent cross-site scripting (XSS) issues in your applications.
Summarising knowledge has as much value as writing a 200 page treatise on a topic, so here is a list of 20 brief points you should bear in mind when battling Cross-Site Scripting (XSS) in PHP. Minus my usual book length brain fart . Chances are good that ignoring or acting contrary to any one of these will lead to a potential XSS vulnerability. It's not necessarily a complete list - if you think something needs to be added, let everyone know in the comments.His tips include things like:
- Never pass data from untrusted origins into output without either escaping or sanitising it.
- Remember that anything not explicitly defined in source code has an untrusted origin.
- Always include ENT_QUOTES, ENT_SUBSTITUTE and a valid character encoding when calling htmlspecialchars().
- Use rawurlencode() to escape strings being inserted into URLs and then HTML escape the entire URL.
- Validate all complete URLs if constructed from untrusted data.
- Remember that HTMLPurifier is the only HTML sanitiser worth using.
- Ensure that cookies which must only be transmitted over HTTPS are marked Secure.
He points out that XSS is still one of the most "popular" (and easy to exploit) attack methods out there, so keep these tips in mind when writing up your code.
Link: http://blog.astrumfutura.com/2013/04/20-point-list-for-preventing-cross-site-scripting-in-phpOffline Access to Google and other OAuth based API
OAuth is a protocol that allows applications to obtain a token to access an API when the user is not present but when the tokens expire they need to be renewed.
Some APIs like Google and Box.net support automatic renewal of expired tokens.
Read this article to learn how to use this OAuth client class to perform offline access to an API storing tokens in a database and how to have expired tokens automatically renewed.
Community News: Packagist Latest Releases for 04.23.2013
- bartosz-maciaszek/php-rtm (1.0.2, 1.0.1, 1.0)
Remember The Milk API client for PHP
- cypresslab/gitelephant (0.9.18, 0.9.17, 0.9.16)
An abstraction layer for git written in PHP 5.3
- onemightyroar/php-activerecord-components (1.0.2)
Useful common components for a php-activerecord based project
- onemightyroar/predis-toolkit (1.0.0, 0.9.1)
Additional classes and functionality to extend Predis
- codeception/codeception (1.6.0.4)
BDD-style testing framework
- gabordemooij/stamp (v2.1)
Clean and powerful template engine for PHP, transforms HTML into object tree for PHP usage without touching design.
- elkuku/console-progressbar (1.0)
This class provides you with an easy-to-use interface to progress bars.
- n98/magerun (1.63.0)
Tools for managing Magento projects and installations
- lox/pheasant (v1.1.1-beta1)
A lightweight data mapper for MySQL and PHP 5.3+
- intouch/laravel-newrelic (1.0.0)
Laravel 4 NewRelic Integration
- onemightyroar/php-redis-transaction-queue (0.9.1)
Allows the easy use of queueing multiple Redis commands into a "transaction" to be executed at one time
- simplon/db (1.2.0, 1.1.1)
Simplon DB Libraries
- intouch/newrelic (1.0.2, 1.0.1, 1.0.0)
Namespaced Wrapper for NewRelic PHP Agent
- chronon/stripe (1.0.1)
A CakePHP 2.x Stripe Payment Processing Component.
- swftools/swftools (0.2.0)
PHP SwfTools
- castanet/userid (0.0.3)
Emulate Nginx's HTTP Userid module
- zenstruck/form-bundle (v1.2.2)
Provides Twitter Bootstrap form theme, a help type extension, Ajax/Tunnel/Select2 entity form types and javascript helpers
- vtalbot/markdown (1.3)
Markdown compiler for Laravel 4 (Illuminate)
- lcobucci/display-objects (1.0.0alpha1)
A way to create UI components and use them as a object from your classes
- nercury/object-router (v1.2.3, v1.2.2, v1.2.1, v1.2.0, v1.0.3, v1.0.2)
Allows to create and manage friendly routes for objects. Requires doctrine-orm to store routes.
- liuggio/statsd-client-bundle (v1.6.3, v1.6.1)
Provides a statsd client and simple ready-to-use support for #Symfony2 Application
- wingu/code-generator (1.0.0.0)
Wingu OctopusCore CoreGenerator
- phpsc/pagseguro (1.0.0alpha2, 1.0.0alpha1)
Client para integração com API do Pagseguro
- balloon/elephant.io (v2.0.2)
Send events to socket.io though PHP
- semsol/arc2 (2.2.3)
Semsol's ARC2 RDF library
- analog/analog (1.0.3-stable)
PHP 5.3+ micro logging class that can be extended via closures. Includes several pre-built handlers including file, mail, syslog, HTTP post, and MongoDB.
- pscheit/psc-cms (1.2.2)
a content management system ontop of webforge.
- nercury/code-igniter-bundle (1.2)
Allows loading Code Igniter as a bundle and eases migration to Symfony.
- xiphe/html (2.0.10)
PHP-based HTML Markup generator
- qubit05/phpunit-mockfunction (1.0.0)
PHPUnit extension to Mock PHP internal functions using Runkit.
- jyggen/curl (v2.0.1)
A simple and lightweight cURL library with support for multiple requests in parallel.
- fsi/datasource-bundle (v1.0.2)
FSi DataSource Bundle
- fsi/datasource (v1.0.4)
FSi DataSource Component
- codemonkeys-ru/gcm-message (0.1)
Google Cloud Messaging (GCM) PHP Server Library
- patchwork/utf8 (v1.0.6)
UTF-8 strings handling for PHP 5.3: portable, performant and extended
- mopa/bootstrap-sandbox-bundle (v2.2.0-alpha1)
Seperate live docs from code
- elkuku/console-table (1.0)
A table generator class for the PHP CLI.