repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/src/PAGI/Client/Result/FaxResult.php | src/PAGI/Client/Result/FaxResult.php | <?php
/**
* This decorated result adds the functionality to check for a fax result.
*
* PHP Version 5
*
* @category Pagi
* @package Client
* @subpackage Result
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/PAGI/ Apache License 2.0
* @version SVN: $Id$
*... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/src/PAGI/Client/Result/DataReadResult.php | src/PAGI/Client/Result/DataReadResult.php | <?php
/**
* This decorated result adds the functionality to check for user input (more
* than one digit).
*
* PHP Version 5
*
* @category Pagi
* @package Client
* @subpackage Result
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/PAGI/ Apache License 2.0
* @... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/src/PAGI/Client/Result/PlayResult.php | src/PAGI/Client/Result/PlayResult.php | <?php
/**
* This class decorates a read result with a play operation like stream file,
* say digits, etc.
*
* PHP Version 5
*
* @category Pagi
* @package Client
* @subpackage Result
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/PAGI/ Apache License 2.0
* @... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/src/PAGI/Client/Result/DigitReadResult.php | src/PAGI/Client/Result/DigitReadResult.php | <?php
/**
* This decorated result adds the functionality to check for user input. We
* need a distinction between a single digit read (this class) and a data read
* (DataReadResult) because asterisk sends the ascii number for the character
* read (the first case) and the literal string in the latter.
*
* PHP Vers... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/src/PAGI/Client/Result/ResultDecorator.php | src/PAGI/Client/Result/ResultDecorator.php | <?php
/**
* A result decorator.
*
* PHP Version 5
*
* @category Pagi
* @package Client
* @subpackage Result
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/PAGI/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com/PAGI/
*
* ... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/src/PAGI/Client/Impl/MockedClientImpl.php | src/PAGI/Client/Impl/MockedClientImpl.php | <?php
/**
* An AGI client implementation useful for mocking and testing ivr apps.
*
* PHP Version 5
*
* @category Pagi
* @package Client
* @subpackage Impl
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/PAGI/ Apache License 2.0
* @version SVN: $Id$
* @li... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/src/PAGI/Client/Impl/ClientImpl.php | src/PAGI/Client/Impl/ClientImpl.php | <?php
/**
* An AGI client implementation.
*
* PHP Version 5
*
* @category Pagi
* @package Client
* @subpackage Impl
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/PAGI/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com/PAGI... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/src/PAGI/DialDescriptor/DialDescriptor.php | src/PAGI/DialDescriptor/DialDescriptor.php | <?php
/**
* Dial Descriptor abstract class.
*
* PHP Version 5.3
*
* @category PAGI
* @package DialDescriptor
* @author Agustín Gutiérrez <agu.gutierrez@gmail.com>
* @license http://marcelog.github.com/PAGI/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com/PAGI/
*
* Copyrig... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/src/PAGI/DialDescriptor/LocalDialDescriptor.php | src/PAGI/DialDescriptor/LocalDialDescriptor.php | <?php
namespace PAGI\DialDescriptor;
/**
* SIP Dial Descriptor class.
*
* @category PAGI
* @package DialDescriptor
* @author Thomas Stähle <staelche@gmail.com>
* @license http://marcelog.github.com/PAGI/ Apache License 2.0
* @link http://marcelog.github.com/PAGI/
*/
class LocalDialDescriptor extends D... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/src/PAGI/DialDescriptor/DAHDIDialDescriptor.php | src/PAGI/DialDescriptor/DAHDIDialDescriptor.php | <?php
/**
* DAHDI Dial Descriptor class.
*
* PHP Version 5.3
*
* @category PAGI
* @package DialDescriptor
* @author Agustín Gutiérrez <agu.gutierrez@gmail.com>
* @license http://marcelog.github.com/PAGI/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com/PAGI/
*
* Copyright ... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/src/PAGI/DialDescriptor/SIPDialDescriptor.php | src/PAGI/DialDescriptor/SIPDialDescriptor.php | <?php
/**
* SIP Dial Descriptor class.
*
* PHP Version 5.3
*
* @category PAGI
* @package DialDescriptor
* @author Agustín Gutiérrez <agu.gutierrez@gmail.com>
* @license http://marcelog.github.com/PAGI/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com/PAGI/
*
* Copyright 20... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/src/PAGI/Exception/ChannelDownException.php | src/PAGI/Exception/ChannelDownException.php | <?php
/**
* This exception indicates the channel went down suddenly.
*
* PHP Version 5
*
* @category Pagi
* @package Exception
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/PAGI/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com/PAGI/
... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/src/PAGI/Exception/RecordException.php | src/PAGI/Exception/RecordException.php | <?php
/**
* This exception indicates an error while recording.
*
* PHP Version 5
*
* @category Pagi
* @package Exception
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/PAGI/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com/PAGI/
*
* ... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/src/PAGI/Exception/DatabaseInvalidEntryException.php | src/PAGI/Exception/DatabaseInvalidEntryException.php | <?php
/**
* This exception indicates the given family or key for a database entry is
* invalid or does not exist.
*
* PHP Version 5
*
* @category Pagi
* @package Exception
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/PAGI/ Apache License 2.0
* @version SVN: $Id$
... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/src/PAGI/Exception/MockedException.php | src/PAGI/Exception/MockedException.php | <?php
/**
* Thrown from the mocked client.
*
* PHP Version 5
*
* @category Pagi
* @package Exception
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/PAGI/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com/PAGI/
*
* Copyright 2011 Marce... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/src/PAGI/Exception/InvalidCommandException.php | src/PAGI/Exception/InvalidCommandException.php | <?php
/**
* This exception indicates an invalid agi command.
*
* PHP Version 5
*
* @category Pagi
* @package Exception
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/PAGI/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com/PAGI/
*
* Co... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/src/PAGI/Exception/SoundFileException.php | src/PAGI/Exception/SoundFileException.php | <?php
/**
* This exception indicates an invalid sound file.
*
* PHP Version 5
*
* @category Pagi
* @package Exception
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/PAGI/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com/PAGI/
*
* Cop... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/src/PAGI/Exception/ExecuteCommandException.php | src/PAGI/Exception/ExecuteCommandException.php | <?php
/**
* This exception indicates the executed application failed.
*
* PHP Version 5
*
* @category Pagi
* @package Exception
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/PAGI/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com/PAGI/... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/src/PAGI/Exception/PAGIException.php | src/PAGI/Exception/PAGIException.php | <?php
/**
* PAGI family of exceptions.
*
* PHP Version 5
*
* @category Pagi
* @package Exception
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/PAGI/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com/PAGI/
*
* Copyright 2011 Marcelo G... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/src/PAGI/CDR/ICDR.php | src/PAGI/CDR/ICDR.php | <?php
/**
* CDR facade. Use this to access cdr variables.
*
* PHP Version 5
*
* @category Pagi
* @package CDR
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/PAGI/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com/PAGI/
*
* Copyright 2... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/src/PAGI/CDR/Impl/CDRFacade.php | src/PAGI/CDR/Impl/CDRFacade.php | <?php
/**
* CDR Facade.
* If the channel has a cdr, that cdr record has it's own set of variables which
* can be accessed just like channel variables. The following builtin variables
* are available and, unless specified, read-only.
*
* ${CDR(clid)} Caller ID
* ${CDR(src)} Source
* ${CDR(dst)} Destination
... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/src/PAGI/ChannelVariables/IChannelVariables.php | src/PAGI/ChannelVariables/IChannelVariables.php | <?php
/**
* ChannelVariables facade. Use this to access channel variables.
*
* PHP Version 5
*
* @category Pagi
* @package ChannelVariables
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/PAGI/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.gith... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/src/PAGI/ChannelVariables/Impl/ChannelVariablesFacade.php | src/PAGI/ChannelVariables/Impl/ChannelVariablesFacade.php | <?php
/**
* ChannelVariables facade implementation.
*
* PHP Version 5
*
* @category Pagi
* @package ChannelVariables
* @subpackage Impl
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/PAGI/ Apache License 2.0
* @version SVN: $Id$
* @link http://marc... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/src/PAGI/CallerId/ICallerId.php | src/PAGI/CallerId/ICallerId.php | <?php
/**
* AGI Caller id facade.
*
* PHP Version 5
*
* @category Pagi
* @package Callerid
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/PAGI/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com/PAGI/
*
* Copyright 2011 Marcelo Gornste... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/src/PAGI/CallerId/Impl/CallerIdFacade.php | src/PAGI/CallerId/Impl/CallerIdFacade.php | <?php
/**
* AGI Caller id facade.
*
* PHP Version 5
*
* @category Pagi
* @package Callerid
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/PAGI/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com/PAGI/
*
* Copyright 2011 Marcelo Gornste... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/test/spool/Test_CallSpool.php | test/spool/Test_CallSpool.php | <?php
/**
* This class will test the call spool.
*
* PHP Version 5
*
* @category Pagi
* @package Test
* @subpackage Spool
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com/
*... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/test/dialdescriptor/Test_DialDescriptor.php | test/dialdescriptor/Test_DialDescriptor.php | <?php
/**
* This class will test the dial descriptors.
*
* PHP Version 5
*
* @category Pagi
* @package Test
* @subpackage Descriptor
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.git... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/test/callerid/Test_CallerID.php | test/callerid/Test_CallerID.php | <?php
/**
* This class will test the callerid
*
* PHP Version 5
*
* @category Pagi
* @package Test
* @subpackage Callerid
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com/
*... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/test/node/Test_Node.php | test/node/Test_Node.php | <?php
/**
* This class will test the pagi nodes
*
* PHP Version 5
*
* @category Pagi
* @package Test
* @subpackage Node
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com/
*
... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/test/node/Test_NodeController.php | test/node/Test_NodeController.php | <?php
/**
* This class will test the node controller.
*
* PHP Version 5
*
* @category Pagi
* @package Test
* @subpackage Node
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/test/mock/Test_Node.php | test/mock/Test_Node.php | <?php
/**
* This class will test the node mock
*
* PHP Version 5
*
* @category Pagi
* @package Test
* @subpackage Mock
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com/
*
*... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/test/mock/Test_Mock.php | test/mock/Test_Mock.php | <?php
/**
* This class will test the agi client mock
*
* PHP Version 5
*
* @category Pagi
* @package Test
* @subpackage Mock
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com/... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/test/autoloader/Test_Autoloader.php | test/autoloader/Test_Autoloader.php | <?php
/**
* This class will test the autoloader.
*
* PHP Version 5
*
* @category Pagi
* @package Test
* @subpackage Autoloader
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.co... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/test/application/Test_Application.php | test/application/Test_Application.php | <?php
/**
* This class will test the pagi applicaiton.
*
* PHP Version 5
*
* @category Pagi
* @package Test
* @subpackage Application
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.gi... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/test/asterisklogger/Test_AsteriskLogger.php | test/asterisklogger/Test_AsteriskLogger.php | <?php
/**
* This class will test the logger.
*
* PHP Version 5
*
* @category Pagi
* @package Test
* @subpackage Logger
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com/
*
*... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/test/channelvars/Test_ChannelVariables.php | test/channelvars/Test_ChannelVariables.php | <?php
/**
* This class will test the channel variables.
*
* PHP Version 5
*
* @category Pagi
* @package Test
* @subpackage Channelvars
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.g... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/test/client/Test_Client.php | test/client/Test_Client.php | <?php
/**
* This class will test the agi client
*
* PHP Version 5
*
* @category Pagi
* @package Test
* @subpackage Client
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com/
*... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | true |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/test/status/Test_ChannelStatus.php | test/status/Test_ChannelStatus.php | <?php
/**
* This class will test the channel status helper.
*
* PHP Version 5
*
* @category Pagi
* @package Test
* @subpackage Status
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.gi... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/test/cdr/Test_CDR.php | test/cdr/Test_CDR.php | <?php
/**
* This class will test the cdr.
*
* PHP Version 5
*
* @category Pagi
* @package Test
* @subpackage Cdr
* @author Marcelo Gornstein <marcelog@gmail.com>
* @license http://marcelog.github.com/ Apache License 2.0
* @version SVN: $Id$
* @link http://marcelog.github.com/
*
* Copyr... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/test/resources/bootstrap.php | test/resources/bootstrap.php | <?php
/**
* Tests bootstrap.
*
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache 2.0
* @author Marcelo Gornstein <marcelog@gmail.com>
* @copyright 2015 Marcelo Gornstein
*/
error_reporting(E_ALL);
ini_set('display_errors', 1);
if (!defined('ROOT_PATH')) {
define('ROOT_PATH', realpath(__DIR__ . "/.... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/doc/examples/node/example.php | doc/examples/node/example.php | <?php
use PAGI\Application\PAGIApplication;
use PAGI\Node\Node;
class MyPagiApplication extends PAGIApplication
{
protected $agi;
protected $asteriskLogger;
protected $channelVariables;
public function mainMenu()
{
return $this->agi->createNode('mainMenu')
->saySound('pp/30')
... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/doc/examples/node/run.php | doc/examples/node/run.php | #!/usr/bin/env php
<?php
declare(ticks=1);
ini_set('error_reporting', E_ALL);
ini_set('display_errors', true);
require __DIR__ . implode(DIRECTORY_SEPARATOR, array(
'',
'..',
'..',
'..',
'vendor',
'autoload.php'
));
require_once __DIR__ . '/example.php';
use PAGI\Client\Impl\ClientImpl as Pag... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/doc/examples/node/test_example.php | doc/examples/node/test_example.php | <?php
date_default_timezone_set('America/Buenos_Aires');
ini_set('error_reporting', E_ALL);
ini_set('display_errors', true);
require __DIR__ . implode(DIRECTORY_SEPARATOR, array(
'',
'..',
'..',
'..',
'vendor',
'autoload.php'
));
require_once __DIR__ . '/example.php';
use PAGI\Client\Impl\Clie... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/doc/examples/mock/MyPAGIApplication.php | doc/examples/mock/MyPAGIApplication.php | <?php
require __DIR__ . implode(DIRECTORY_SEPARATOR, array(
'',
'..',
'..',
'..',
'vendor',
'autoload.php'
));
require __DIR__ . implode(DIRECTORY_SEPARATOR, array(
implode(DIRECTORY_SEPARATOR, array(
'',
'..',
'quickstart',
'MyPAGIApplication.php'
))
));... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/doc/examples/mock/mocktest.php | doc/examples/mock/mocktest.php | <?php
require __DIR__ . implode(DIRECTORY_SEPARATOR, array(
'',
'..',
'..',
'..',
'vendor',
'autoload.php'
));
$variables = array(
'request' => 'request.php',
'channel' => 'SIP/blah-00803890',
'language' => 'ar',
'type' => 'SIP',
'uniqueid' => '1330012581.77',
'version' =... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/doc/examples/nodecontroller/example.php | doc/examples/nodecontroller/example.php | <?php
/**
* An example using nodes and node controller. This is a part of a calling card
* prepaid system. The nodes will let you enter a pin number, make a transfer
* between cards, dial a number, and listen to the help.
*
* Sounds are not provided, just the code as a sample of what can be done
* with the node c... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/doc/examples/nodecontroller/run.php | doc/examples/nodecontroller/run.php | #!/usr/bin/env php
<?php
declare(ticks=1);
date_default_timezone_set('America/Buenos_Aires');
ini_set('error_reporting', E_ALL);
ini_set('display_errors', true);
require __DIR__ . implode(DIRECTORY_SEPARATOR, array(
'',
'..',
'..',
'..',
'vendor',
'autoload.php'
));
require_once __DIR__ . '/e... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/doc/examples/quickstart/spooling.php | doc/examples/quickstart/spooling.php | <?php
/**
* Spooling calls exmaples.
*
* PHP Version 5.3
*
* Copyright 2011 Marcelo Gornstein <marcelog@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://ww... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
marcelog/PAGI | https://github.com/marcelog/PAGI/blob/c72d50304716c60a8c016eaf2b0faf2fca72f46d/doc/examples/quickstart/MyPAGIApplication.php | doc/examples/quickstart/MyPAGIApplication.php | <?php
/**
* PAGI basic use example. Please see run.sh in this same directory for an
* example of how to actually run this from your dialplan.
*
* Note: The client accepts an array with options. The available options are
*
* stdin => Optional. If set, should contain an already open stream from
* where the client ... | php | Apache-2.0 | c72d50304716c60a8c016eaf2b0faf2fca72f46d | 2026-01-05T02:41:14.423155Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/RoboFile.php | RoboFile.php | <?php
use Lurker\Event\FilesystemEvent;
use Robo\Tasks;
class RoboFile extends Tasks
{
public function watch(string $patterns, string $commands)
{
$files = array_reduce(
explode(',', $patterns),
fn ($array, $pattern) => [...$array, ...glob(trim($pattern))],
[]
... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/src/ModelTyperServiceProvider.php | src/ModelTyperServiceProvider.php | <?php
namespace FumeApp\ModelTyper;
use FumeApp\ModelTyper\Commands\ModelTyperCommand;
use FumeApp\ModelTyper\Commands\ShowModelTyperMappingsCommand;
use FumeApp\ModelTyper\Listeners\RunModelTyperCommand;
use Illuminate\Console\Events\CommandFinished;
use Illuminate\Database\Events\MigrationsEnded;
use Illuminate\Sup... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/src/Exceptions/ModelTyperException.php | src/Exceptions/ModelTyperException.php | <?php
namespace FumeApp\ModelTyper\Exceptions;
use Exception;
/**
* Top level exception for the package. Should cover all exceptions thrown by package.
* Extend this exception for more specific exception types that can be thrown.
*/
class ModelTyperException extends Exception {}
| php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/src/Exceptions/CommandException.php | src/Exceptions/CommandException.php | <?php
namespace FumeApp\ModelTyper\Exceptions;
/**
* An exception that should be thrown when internal command execution failed.
*/
class CommandException extends ModelTyperException {}
| php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/src/Exceptions/AbstractModelException.php | src/Exceptions/AbstractModelException.php | <?php
namespace FumeApp\ModelTyper\Exceptions;
/**
* An exception that should be thrown when trying to initialize an abstract model.
*/
class AbstractModelException extends CommandException {}
| php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/src/Traits/ClassBaseName.php | src/Traits/ClassBaseName.php | <?php
namespace FumeApp\ModelTyper\Traits;
use Illuminate\Support\Str;
trait ClassBaseName
{
/**
* Get the name of the class.
*/
public function getClassName(string $className): string
{
return Str::afterLast($className, '\\');
}
}
| php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/src/Traits/ModelRefClass.php | src/Traits/ModelRefClass.php | <?php
namespace FumeApp\ModelTyper\Traits;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Collection;
use ReflectionClass;
trait ModelRefClass
{
/**
* Get the reflection interface.
*
* @param array{"class": class-string<Model>, database: s... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/src/Listeners/RunModelTyperCommand.php | src/Listeners/RunModelTyperCommand.php | <?php
namespace FumeApp\ModelTyper\Listeners;
use FumeApp\ModelTyper\Commands\ModelTyperCommand;
use Illuminate\Console\Events\CommandFinished;
use Illuminate\Contracts\Console\Kernel as Artisan;
class RunModelTyperCommand
{
/**
* Tracks whether we should run the models command on the CommandFinished event ... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/src/Actions/WriteCount.php | src/Actions/WriteCount.php | <?php
namespace FumeApp\ModelTyper\Actions;
use Illuminate\Support\Facades\Config;
class WriteCount
{
/**
* Write the relationship counts to the output.
*
* @param array{name: string, type: string, related:string} $relation
* @return array{type: string, name: string}|string
*/
publ... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/src/Actions/GetModels.php | src/Actions/GetModels.php | <?php
namespace FumeApp\ModelTyper\Actions;
use Composer\ClassMapGenerator\ClassMapGenerator;
use Illuminate\Database\Eloquent\Model as EloquentModel;
use Illuminate\Support\Collection;
use Illuminate\Support\Str;
use ReflectionClass;
use SplFileInfo;
class GetModels
{
/**
* Return collection of models.
... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/src/Actions/WriteSum.php | src/Actions/WriteSum.php | <?php
namespace FumeApp\ModelTyper\Actions;
use Illuminate\Support\Facades\Config;
class WriteSum
{
public function __invoke(array $sum, string $indent = '', bool $jsonOutput = false, bool $optionalSums = false): string|array
{
$relation = $sum['relation'];
$column = $sum['column'];
... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/src/Actions/WriteColumnAttribute.php | src/Actions/WriteColumnAttribute.php | <?php
namespace FumeApp\ModelTyper\Actions;
use FumeApp\ModelTyper\Traits\ClassBaseName;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Str;
use ReflectionClass;
use ReflectionException;
use ReflectionFunction;
use ReflectionNamedType;
class WriteColumnAttribute
{
use ClassBaseName;
/**
... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/src/Actions/GetMappings.php | src/Actions/GetMappings.php | <?php
namespace FumeApp\ModelTyper\Actions;
use FumeApp\ModelTyper\Constants\TypescriptMappings;
use Illuminate\Support\Facades\Config;
class GetMappings
{
/**
* Merges mappings from Config with Constants from TypescriptMappings.
*
* @return array<string, string>
*/
public function __invo... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/src/Actions/RunModelInspector.php | src/Actions/RunModelInspector.php | <?php
namespace FumeApp\ModelTyper\Actions;
use FumeApp\ModelTyper\Overrides\ModelInspector;
use Illuminate\Contracts\Foundation\Application;
class RunModelInspector
{
public function __construct(protected ?Application $app = null)
{
$this->app = $app ?? app();
}
/**
* Run internal Lara... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/src/Actions/GenerateCliOutput.php | src/Actions/GenerateCliOutput.php | <?php
namespace FumeApp\ModelTyper\Actions;
use FumeApp\ModelTyper\Traits\ClassBaseName;
use FumeApp\ModelTyper\Traits\ModelRefClass;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Str;
use ReflectionClass;
use SplFileInfo;
class GenerateCliOutput
{
use ClassBase... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/src/Actions/WriteRelationship.php | src/Actions/WriteRelationship.php | <?php
namespace FumeApp\ModelTyper\Actions;
use FumeApp\ModelTyper\Traits\ClassBaseName;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Str;
class WriteRelationship
{
use ClassBaseName;
/**
* Write the relationship to the output.
*
* @param array{name: string, type: string, re... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/src/Actions/WriteEnumConst.php | src/Actions/WriteEnumConst.php | <?php
namespace FumeApp\ModelTyper\Actions;
use ReflectionClass;
class WriteEnumConst
{
/**
* Write the enum const to the output.
*
* @return array{type: string, name: string}|string
*/
public function __invoke(ReflectionClass $reflection, string $indent = '', bool $jsonOutput = false, bo... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/src/Actions/DetermineAccessorType.php | src/Actions/DetermineAccessorType.php | <?php
namespace FumeApp\ModelTyper\Actions;
use Exception;
use Illuminate\Support\Str;
use ReflectionClass;
use ReflectionException;
use ReflectionMethod;
class DetermineAccessorType
{
/**
* Determine the type of accessor.
*
* @see https://laravel.com/docs/9.x/eloquent-mutators#defining-an-accesso... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/src/Actions/GenerateJsonOutput.php | src/Actions/GenerateJsonOutput.php | <?php
namespace FumeApp\ModelTyper\Actions;
use const JSON_PRETTY_PRINT;
use FumeApp\ModelTyper\Traits\ClassBaseName;
use FumeApp\ModelTyper\Traits\ModelRefClass;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Config;
use ReflectionClass;
use ReflectionException;
use SplFileInfo;
class GenerateJs... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/src/Actions/BuildModelDetails.php | src/Actions/BuildModelDetails.php | <?php
namespace FumeApp\ModelTyper\Actions;
use Composer\ClassMapGenerator\ClassMapGenerator;
use FumeApp\ModelTyper\Traits\ClassBaseName;
use FumeApp\ModelTyper\Traits\ModelRefClass;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Collection;
use ReflectionCla... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/src/Actions/MapReturnType.php | src/Actions/MapReturnType.php | <?php
namespace FumeApp\ModelTyper\Actions;
use ErrorException;
class MapReturnType
{
/**
* Map the return type to a typescript type.
*
* @param array<string, string> $mappings
*
* @throws \ErrorException
*/
public function __invoke(string $returnType, array $mappings): string... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/src/Actions/WriteExist.php | src/Actions/WriteExist.php | <?php
namespace FumeApp\ModelTyper\Actions;
use FumeApp\ModelTyper\Traits\ClassBaseName;
use Illuminate\Support\Facades\Config;
class WriteExist
{
use ClassBaseName;
/**
* Write the relationship exists field to the output.
*
* @param array{name: string, type: string, related:string} $relati... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/src/Actions/MatchCase.php | src/Actions/MatchCase.php | <?php
namespace FumeApp\ModelTyper\Actions;
use Illuminate\Support\Str;
class MatchCase
{
/**
* Map the return type to a typescript type.
*/
public function __invoke(string $case, string $value): string
{
return match ($case) {
'snake' => Str::snake($value),
'cam... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/src/Actions/Generator.php | src/Actions/Generator.php | <?php
namespace FumeApp\ModelTyper\Actions;
use FumeApp\ModelTyper\Exceptions\ModelTyperException;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Config;
use ReflectionException;
use SplFileInfo;
/**
* @throws ModelTyperException
*/
class Generator
{
/**
* Run the command to generate th... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/src/Overrides/ModelInspector.php | src/Overrides/ModelInspector.php | <?php
namespace FumeApp\ModelTyper\Overrides;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Database\Eloquent\ModelInspector as EloquentModelInspector;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Str;
class ModelInspector extends EloquentModelInspector
... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/src/Commands/ModelTyperCommand.php | src/Commands/ModelTyperCommand.php | <?php
namespace FumeApp\ModelTyper\Commands;
use FumeApp\ModelTyper\Actions\Generator;
use FumeApp\ModelTyper\Exceptions\ModelTyperException;
use Illuminate\Console\Command;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Facades\Config;
use ReflectionException;
use Symfony\Component\Console\Attribute\As... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/src/Commands/ShowModelTyperMappingsCommand.php | src/Commands/ShowModelTyperMappingsCommand.php | <?php
namespace FumeApp\ModelTyper\Commands;
use FumeApp\ModelTyper\Actions\GetMappings;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Config;
use Symfony\Component\Console\Attribute\AsCommand;
#[AsCommand(name: 'model:typer-mappings')]
class ShowModelTyperMappingsCommand extends Command
{
/**
... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/src/Constants/TypescriptMappings.php | src/Constants/TypescriptMappings.php | <?php
namespace FumeApp\ModelTyper\Constants;
/**
* @see https://laravel.com/docs/10.x/eloquent-mutators#attribute-casting
*/
class TypescriptMappings
{
/**
* @var array<string, string>
*/
public static array $mappings = [
'array' => 'Array<unknown>',
'bigint' => 'number',
... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/test/bootstrap.php | test/bootstrap.php | <?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
require_once __DIR__ . '/laravel-skeleton/vendor/autoload.php';
// Configuration based on recommendations from https://docs.phpunit.de/en/11.4/installation.html#configuring-php-for-development
error_reporting(E_ALL);
ini_set('display_errors', 1);
ini_set(... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/test/Tests/TestCase.php | test/Tests/TestCase.php | <?php
namespace Tests;
use FumeApp\ModelTyper\ModelTyperServiceProvider;
use Illuminate\Config\Repository;
use function Orchestra\Testbench\package_path;
use function Orchestra\Testbench\workbench_path;
abstract class TestCase extends \Orchestra\Testbench\TestCase
{
protected function tearDown(): void
{
... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/test/Tests/Traits/UsesInputFiles.php | test/Tests/Traits/UsesInputFiles.php | <?php
namespace Tests\Traits;
use function Orchestra\Testbench\package_path;
trait UsesInputFiles
{
use GetsFilesContent;
public function getInputPath(?string $appends = null): string
{
$path = package_path('test/input');
if ($appends) {
$path .= str_starts_with($appends, '/... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/test/Tests/Traits/GeneratesOutput.php | test/Tests/Traits/GeneratesOutput.php | <?php
namespace Tests\Traits;
use function Orchestra\Testbench\package_path;
trait GeneratesOutput
{
use GetsFilesContent;
public function getOutputPath(?string $appends = null): string
{
$path = package_path('test/output');
if ($appends) {
$path .= str_starts_with($appends,... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/test/Tests/Traits/ResolveClassAsReflection.php | test/Tests/Traits/ResolveClassAsReflection.php | <?php
namespace Tests\Traits;
use ReflectionClass;
trait ResolveClassAsReflection
{
/**
* Resolve a class as a ReflectionClass.
*
* @param class-string<\Illuminate\Database\Eloquent\Model> $model
* @return \ReflectionClass<\Illuminate\Database\Eloquent\Model>
*/
public function res... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/test/Tests/Traits/GetsFilesContent.php | test/Tests/Traits/GetsFilesContent.php | <?php
namespace Tests\Traits;
use Illuminate\Support\Str;
trait GetsFilesContent
{
public function normalizeLineEndings(string $string): string
{
if (PHP_OS_FAMILY === 'Windows') {
return Str::of($string)
->replace("\r\n", "\n")
->replace("\n", PHP_EOL)
... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/test/Tests/Feature/Actions/WriteExistTest.php | test/Tests/Feature/Actions/WriteExistTest.php | <?php
namespace Tests\Feature\Actions;
use FumeApp\ModelTyper\Actions\WriteExist;
use Tests\TestCase;
class WriteExistTest extends TestCase
{
protected array $relation = [
'name' => 'notifications',
'type' => 'HasMany',
'related' => "Illuminate\Notifications\DatabaseNotification",
];
... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/test/Tests/Feature/Actions/WriteCountTest.php | test/Tests/Feature/Actions/WriteCountTest.php | <?php
namespace Tests\Feature\Actions;
use FumeApp\ModelTyper\Actions\WriteCount;
use Tests\TestCase;
class WriteCountTest extends TestCase
{
protected array $relation = [
'name' => 'notifications',
'type' => 'HasMany',
'related' => "Illuminate\Notifications\DatabaseNotification",
];
... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/test/Tests/Feature/Actions/BuildModelDetailsTest.php | test/Tests/Feature/Actions/BuildModelDetailsTest.php | <?php
namespace Tests\Feature\Actions;
use App\Models\Complex;
use App\Models\ComplexRelationship;
use App\Models\User;
use FumeApp\ModelTyper\Actions\BuildModelDetails;
use FumeApp\ModelTyper\Actions\GetModels;
use Tests\TestCase;
class BuildModelDetailsTest extends TestCase
{
public function test_action_can_be... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/test/Tests/Feature/Actions/WriteSumTest.php | test/Tests/Feature/Actions/WriteSumTest.php | <?php
namespace Tests\Feature\Actions;
use FumeApp\ModelTyper\Actions\WriteSum;
use Tests\TestCase;
class WriteSumTest extends TestCase
{
protected array $sum = [
'relation' => 'orders',
'column' => 'total',
];
public function test_action_can_be_resolved_by_application()
{
$t... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/test/Tests/Feature/Actions/MapReturnTypeTest.php | test/Tests/Feature/Actions/MapReturnTypeTest.php | <?php
namespace Tests\Feature\Actions;
use ErrorException;
use FumeApp\ModelTyper\Actions\MapReturnType;
use Tests\TestCase;
class MapReturnTypeTest extends TestCase
{
public function test_action_can_be_resolved_by_application()
{
$this->assertInstanceOf(MapReturnType::class, resolve(MapReturnType::c... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/test/Tests/Feature/Actions/GenerateCliOutputTest.php | test/Tests/Feature/Actions/GenerateCliOutputTest.php | <?php
namespace Tests\Feature\Actions;
use FumeApp\ModelTyper\Actions\GenerateCliOutput;
use FumeApp\ModelTyper\Actions\GetMappings;
use FumeApp\ModelTyper\Actions\GetModels;
use Tests\TestCase;
class GenerateCliOutputTest extends TestCase
{
public function test_action_can_be_resolved_by_application()
{
... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/test/Tests/Feature/Actions/RunModelInspectorTest.php | test/Tests/Feature/Actions/RunModelInspectorTest.php | <?php
namespace Tests\Feature\Actions;
use App\Models\AbstractModel;
use App\Models\User;
use FumeApp\ModelTyper\Actions\RunModelInspector;
use Tests\TestCase;
class RunModelInspectorTest extends TestCase
{
public function test_action_can_be_resolved_by_application()
{
$this->assertInstanceOf(RunMode... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/test/Tests/Feature/Actions/GetMappingsTest.php | test/Tests/Feature/Actions/GetMappingsTest.php | <?php
namespace Tests\Feature\Actions;
use FumeApp\ModelTyper\Actions\GetMappings;
use Illuminate\Support\Facades\Config;
use Tests\TestCase;
class GetMappingsTest extends TestCase
{
public function test_action_can_be_resolved_by_application()
{
$this->assertInstanceOf(GetMappings::class, resolve(Get... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/test/Tests/Feature/Actions/WriteEnumConstTest.php | test/Tests/Feature/Actions/WriteEnumConstTest.php | <?php
namespace Tests\Feature\Actions;
use App\Enums\Roles;
use FumeApp\ModelTyper\Actions\WriteEnumConst;
use Tests\TestCase;
use Tests\Traits\GeneratesOutput;
use Tests\Traits\ResolveClassAsReflection;
use Tests\Traits\UsesInputFiles;
class WriteEnumConstTest extends TestCase
{
use GeneratesOutput, ResolveClas... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/test/Tests/Feature/Actions/WriteColumnAttributeTest.php | test/Tests/Feature/Actions/WriteColumnAttributeTest.php | <?php
namespace Tests\Feature\Actions;
use App\Models\User;
use FumeApp\ModelTyper\Actions\WriteColumnAttribute;
use ReflectionClass;
use Tests\TestCase;
class WriteColumnAttributeTest extends TestCase
{
public array $attribute = [
'name' => 'role_traditional',
'type' => null,
'increments... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/test/Tests/Feature/Actions/WriteRelationshipTest.php | test/Tests/Feature/Actions/WriteRelationshipTest.php | <?php
namespace Tests\Feature\Actions;
use FumeApp\ModelTyper\Actions\WriteCount;
use FumeApp\ModelTyper\Actions\WriteExist;
use FumeApp\ModelTyper\Actions\WriteRelationship;
use Tests\TestCase;
class WriteRelationshipTest extends TestCase
{
protected array $relation = [
'name' => 'notifications',
... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/test/Tests/Feature/Actions/GeneratorTest.php | test/Tests/Feature/Actions/GeneratorTest.php | <?php
namespace Tests\Feature\Actions;
use App\Models\AbstractModel;
use App\Models\User;
use App\Modules\Models\Team;
use FumeApp\ModelTyper\Actions\Generator;
use FumeApp\ModelTyper\Exceptions\ModelTyperException;
use Illuminate\Support\Facades\Config;
use Tests\TestCase;
class GeneratorTest extends TestCase
{
... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/test/Tests/Feature/Actions/DetermineAccessorTypeTest.php | test/Tests/Feature/Actions/DetermineAccessorTypeTest.php | <?php
namespace Tests\Feature\Actions;
use App\Models\User;
use Exception;
use FumeApp\ModelTyper\Actions\DetermineAccessorType;
use ReflectionClass;
use ReflectionMethod;
use Tests\TestCase;
use Tests\Traits\ResolveClassAsReflection;
class DetermineAccessorTypeTest extends TestCase
{
use ResolveClassAsReflectio... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/test/Tests/Feature/Actions/MatchCaseTest.php | test/Tests/Feature/Actions/MatchCaseTest.php | <?php
namespace Tests\Feature\Actions;
use FumeApp\ModelTyper\Actions\MatchCase;
use Tests\TestCase;
class MatchCaseTest extends TestCase
{
public function test_snake_case()
{
$value = 'TestValue';
$result = app(MatchCase::class)('snake', $value);
$this->assertEquals('test_value', $re... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/test/Tests/Feature/Actions/GetModelsTest.php | test/Tests/Feature/Actions/GetModelsTest.php | <?php
namespace Tests\Feature\Actions;
use App\Models\User;
use App\Modules\Models\Team;
use FumeApp\ModelTyper\Actions\GetModels;
use Tests\TestCase;
class GetModelsTest extends TestCase
{
public function test_action_can_be_resolved_by_application()
{
$this->assertInstanceOf(GetModels::class, resolv... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/test/Tests/Feature/Actions/GenerateJsonOutputTest.php | test/Tests/Feature/Actions/GenerateJsonOutputTest.php | <?php
namespace Tests\Feature\Actions;
use FumeApp\ModelTyper\Actions\GenerateJsonOutput;
use FumeApp\ModelTyper\Actions\GetMappings;
use FumeApp\ModelTyper\Actions\GetModels;
use Tests\TestCase;
class GenerateJsonOutputTest extends TestCase
{
public function test_action_can_be_resolved_by_application()
{
... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
fumeapp/modeltyper | https://github.com/fumeapp/modeltyper/blob/c503ca0b2010d74fc14418234f9661632c56d028/test/Tests/Feature/Console/ModelTyperCommandTest.php | test/Tests/Feature/Console/ModelTyperCommandTest.php | <?php
namespace Tests\Feature\Console;
use App\Models\Complex;
use App\Models\User;
use FumeApp\ModelTyper\Commands\ModelTyperCommand;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Config;
use Tests\TestCase;
use Tests\Traits\GeneratesOutput;
use Tests\Traits\UsesInputFiles;
class... | php | MIT | c503ca0b2010d74fc14418234f9661632c56d028 | 2026-01-05T02:41:24.985654Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.