Communication
Connect instantly. Communicate effortlessly.
From a single annotated PHP method to a live user interface, from a configured mailbox to a delivered notification: APPNETOS makes application communication a built-in capability, not a separate infrastructure project.
AJAX. One Annotation. Ready to Go.
Expose an application method to asynchronous requests
using #[Ajax]. APPNETOS resolves the requested controller, validates access
and executes the method without loading every application.
Mailer. Configured Once. Available Across Your App.
Configure a default mailbox globally or override it per application. Send messages through SMTP, PHP mail or Sendmail, with additional mailboxes implemented when your business logic requires them.
AJAX
Turn PHP methods into interactive experiences.
Traditional asynchronous endpoints often mean additional routing, controller wiring and client-side boilerplate. APPNETOS takes a more direct approach: annotate an eligible public method and call it through the built-in AJAX runtime.
Only the requested controller is resolved for the AJAX call. The framework handles request identification and AJAX-token validation, while the annotation determines whether an authenticated user is required.
Frontend methods are public by default (user: false); administrative methods require
an
authenticated user by default (user: true). Developers can explicitly adjust the
requirement for individual methods.
Minimal PHP. Immediate interaction.
#[Ajax]
public function status(): void
{
$this->json([
'ready' => true,
]);
}
Built into appnetos.js
appnetos.ajaxJson(
'YourController',
'status',
(result) => console.log(result)
);
Illustrative example: use the controller identifier resolved by your application.
Everything the browser needs, already included.
Load HTML
ajaxElement() updates a target
element from a server response.
Handle callbacks
ajaxFunction() passes response text
to a callback.
Work with JSON
ajaxJson() parses JSON responses for
JavaScript consumers.
Submit forms
ajaxForm() serializes a form and
sends it asynchronously.
Mailer
Reliable email starts with one configuration.
Notifications, contact forms and transactional messages belong to everyday business software. APPNETOS provides an integrated mailer with a configurable default mailbox, so applications can focus on the message rather than rebuilding the transport layer.
Set the default in the global Core configuration or provide application-specific settings. Choose authenticated SMTP, an SMTP relay without authentication, PHP mail or Sendmail according to your environment. Applications can integrate further mailbox configurations when needed.